This repository contains the source code for Docusaurus to render the look and feel of 128 Technology product documentation as well as the documentation itself in markdown format.
The product of "building" the markdown files into static HTML files are published to https://docs.128technology.com after PRs are merged into the master branch
If you are interested in contributing content to the repository, please first read through the Contributing guidelines.
Preview your docs from a local live-reloading web server running in docker!
Some of the markdown files in the project are large and require increasing the amount of memory in docker. By default docker limits the amount of memory for each container to 2GB. This needs to be increased to 4GB in order for npm to compile the markdown files to html. In order to increase the memory, go to Docker > Preferences > Resources and move the slider to 4GB, as can be seen in the image below.
The simplest method to run the server is with docker-compose
.
- Ensure you have installed
docker
anddocker-compose
. - Run
docker-compose up
to build and start the server in a container.
Alternatively if you prefer, you can run the server just with docker
.
- Ensure you have installed
docker
. - Run
docker image build -t 128t-docs .
to build the image. - Run
docker create --name 128t-docs --publish 3000:3000 128t-docs
to create the container. - Run
docker start -a 128t-docs
to start the container.
That's it. Point a browser to http://localhost:3000 to see the fruits of your labor.
If you already have docker running, you will first need to stop docker:
docker-compose down
or
docker ps
docker stop <container-hash>
finally
docker rmi docs_docusaurus
At this point, you can now install any needed npm modules. The next time docker starts they will be added to the newly instantiated container.