-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
# Welcome to Journal Stack π! | ||
# Welcome to Journal Stack π! (Remix PWA Edition) | ||
|
||
## What is Journal Stack? | ||
Journal Stack (Remix PWA) is built with [Remix PWA](https://remix-pwa.run) and is a documentation stack for scaffolding your doc writing experience! | ||
|
||
It includes the following core technologies: | ||
|
||
- [Remix + Vite](https://remix.run) for the web app | ||
- [Fly.io](https://fly.io) for hosting | ||
- [AWS S3 Bucket](https://aws.amazon.com/s3/) for storing documentation content | ||
- [MDX](https://mdxjs.com/) for writing documentation content | ||
- [Tailwind CSS](https://tailwindcss.com/) for styling | ||
- [Playwright](https://playwright.dev/) and [Vitest](https://vitest.dev) for testing | ||
|
||
The following docs would run you through the process of setting up your own documentation stack. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
# Setting up your own documentation π§ | ||
|
||
To set up your own docs, after cloning the repo and installing dependencies, you need to do the following: | ||
|
||
- Rename the `.env.development` file to `.env` and fill in the required environment variables. The AWS part would be discussed in the deployment section, but | ||
for now, fill in the `GITHUB_OWNER` and `GITHUB_REPO` variables with your GitHub username and the name of the repo you want to use for storing your docs content (should be your own forked repo!). | ||
- The `GITHUB_TOKEN` variable is a personal access token that would be used to access your repo. You can generate one via your GitHub settings page. | ||
- Delete the `docs` folder. You wouldn't need it and can refer back to this one if you need to. | ||
- You can also go ahead and delete the `funding.yml` file within `.github` folder, although **DON'T** delete the `workflows` folder within the same folder. | ||
|
||
That's about it! Run `npm run dev` to start the app and you should be good to go! Easy, right? π |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# Customise the look of your docs π | ||
|
||
Extending your styles (or changing it entirely) is pretty easy, the entire docs app is divided into five routes: | ||
|
||
- `_index.tsx`: The index route, this is the landing page of your docs. If you want to abolish a landing page, feel free to uncomment the `redirect` function in the loader. | ||
- `docs.$tag.tsx`: The docs 'tag' route, this is where the heavy lifting happens for versioning. Versioning would be discussed later. It also contains the sidebar wrapper for your app (as you would see, the app is wrapped in a `Sidebar` component that provides quite a lot of information). | ||
- `docs.$tag.$slug.tsx`: The docs 'slug' route, this is where the actual docs content is rendered. | ||
- `docs.$tag._index.tsx`: The docs 'tag index' route, this is where the 'index' route is rendered, if any (this would be explained later in the writing-docs section). | ||
- `updateTheme.tsx`: Handles themes more or less. Journal Stack includes support for system, light and dark themes (Thanks Daniel Kaneem for the concept!) | ||
|
||
That's basically it! There are three main components that make up the docs itself: | ||
|
||
- `app/components/layout/Header.tsx`: The header of the doc, both mobile and desktop-wise. | ||
- `app/components/layout/Sidebar.tsx`: The sidebar of the docs, handles the heavy weighlifting of all the docs manipulation and versioning | ||
- `app/components/layout/Documentation.tsx`: The content of the docs, handles the rendering of the docs content itself. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# Write some content βοΈ | ||
# Write some content βοΈ | ||
|
||
Each theme has unique perks and features available within the docs system, this could include unique frontmatter fields, custom components, etc. In this doc, we would be exploring the ones available for Remix PWA theme and how to start writing your own docs. |