This repository contains the source for the Dolittle documentation website.
Built with the docsy Hugo template.
This repository has a sub module, clone it with:
$ git clone --recursive https://github.com/dolittle/Documentation.git
If you've already cloned it, you can get the submodule by doing the following:
$ git submodule update --init --recursive
This might take a while.
Check docsy documentation for how to build and customize stuff.
You'll need Hugo extended v0.71
or higher.
Markdown files are either in Source/content
or symlinks to their respective submodules from Repositories/
.
If you want to do SCSS edits and want to publish these, you need to install PostCSS
(not needed for hugo server
):
cd Source/
npm install
Once you've cloned the site repo, from the Source -folder, run:
hugo server
- Docker
- Download dolittle-documentation-server script and add add it to your path
Run the dolittle-documentation-server script from withing your local Dolittle git repository that you want to edit. The script will automatically mount the correct folders inside the docker image and start a Hugo server that will watch for changes.
It doesn't matter which subfolder you're in as long as your in the git repository.
dolittle-documentation-server
You can run docsy-example inside a Docker
container, the container runs with a volume bound to the docsy-example
folder. This approach doesn't require you to install any dependencies other
than Docker.
- Build the docker image
./dockerize.sh
- Run the built image
docker run --publish 1313:1313 --detach --mount src="$(pwd)",target=/home/docsy/app,type=bind dolittle/documentation:latest
Open your web browser and type http://localhost:1313
in your navigation bar,
This opens a local instance of the docsy-example homepage. You can now make
changes to the docsy example and those changes will immediately show up in your
browser after you save.
To stop the container, first identify the container ID with:
docker container ls
Take note of the hexadecimal string below the CONTAINER ID
column, then stop
the container:
docker stop [container_id]
To delete the container run:
docker container rm [container_id]
To learn how to contribute please read our contributing guides.