Contributing to this Website
Select in what environment you want to work:
- Github
- Locally
Quickstart
You can click the Edit this page button at the bottom of any page to start editing it on GitHub or you can go to emexlab/emexlab.github.io.
Github Pages
You can find an automatic build of the newest state at https://emexlab.github.io/
Quickstart
./quickstart.sh
This script setups everything for you.
Installation
npm install
Local Development
npm run start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
npm run build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Github Pages
You can find an automatic build of the newest state at https://emexlab.github.io/
SSH
./deploy.sh user@host
This will build the site and upload it via ssh to the specified host as the specified user.
It's recommended to set up SSH keys beforehand. Otherwise, pass -n and expect several SSH password prompts during deployment.
There is a Todo list in the README.
This is a good starting point for first time contributors.
Writing Documentation
You should always use .mdx instead of .md.
All folders directly in a docs folder must contain an index.mdx. These and all .mdx files directly in a docs folder should also contain a value for sidebar_position in the metadata.
---
sidebar_position: 2
---
# Example Documentation
...
Please follow the best pratices from markdownguide.org/basic-syntax
You can find more documentation at docusaurus.io.
The websites github is also a good reference point: docusaurus/website
React
You can also contribute to the website in various other ways:
- Improving components
- Creating new components (your component must be used in atleast on page)
- Helping on pages, for example this page
But please restraint from using swizzling to change the website (except if it's the offical way). Always look if what you're trying to do can be achieved using classes and CSS.
When writing react code please follow the best pratices from react.dev
Changes to /static/bootstrap and /src/pages/imprint.mdx will always be rejected!