A comprehensive cheatsheet website for DevOps, SysAdmin, SRE, and Engineering topics including AWS, Linux utilities, Terraform, Packer, databases, infrastructure management, Vault, Consul, and more.
- Node.js (version 25 or higher)
- yarn
-
Clone the repository:
git clone https://github.com/jae-labs/pages.git cd pages -
Install dependencies:
yarn install
To start the development server:
yarn startThis will start the server on http://localhost:3000 and open it in your browser. The site will automatically reload when you make changes.
To build the site for production:
yarn buildThe built files will be in the build directory.
To serve the built site locally:
yarn serveThis site is configured for deployment to GitHub Pages. To deploy:
yarn deployThis will build the site and push it to the gh-pages branch.
To upgrade Docusaurus to the latest version:
-
Check the Docusaurus migration guide for any breaking changes.
-
Update the dependencies:
yarn upgrade @docusaurus/core @docusaurus/preset-classic @docusaurus/plugin-content-docs @docusaurus/theme-search-algolia
-
If upgrading to a major version (e.g., v2 to v3 or v3 to v4):
- Manually update the version numbers in
package.jsonfor all@docusaurus/packages to the target major version. - Update related dependencies as required (e.g., React to v18, MDX to v3 for v3 upgrades).
- Update the Node.js engine requirement in
package.jsonif specified. - Run
yarn installto install the updated packages. - Follow any specific migration steps in the guide, such as running migration scripts or updating configuration files.
- Check for MDX-related breaking changes, as major versions often include MDX upgrades.
- Manually update the version numbers in
-
Test the site locally after upgrading.
- Add new
.mdor.mdxfiles to thedocs/directory. - Update
sidebars.jsto include the new documents in the sidebar. - For images, place them in the
static/img/directory.
- Edit files in
src/components/for custom components. - Modify
src/css/custom.cssfor custom styles. - Use
yarn swizzleto eject and customize Docusaurus components.
- Edit
docusaurus.config.jsfor site configuration. - Update
babel.config.jsif needed for custom Babel configuration.
After making changes:
- Test locally with
yarn start. - Build with
yarn build. - Commit and push your changes.
- Deploy with
yarn deploy.
Contributions are welcome! Please see the Contributing Guide for details.
This project is licensed under the terms specified in the LICENSE file.