The repository of docs.lucidarch.dev.
- Clone this repository
- Clone theme:
git submodule init && git submodule update - Run server container with
docker-compose up -dand changes will take effect on save - Visit
http://localhost:1313to see it
The docs are built using Hugo with a customised version of docport theme.
- Fork this repository
- Create a branch for your contribution
git checkout -b fix/issue-32 - Run build container using
docker-compose up -dand from here on changes will take effect on save - Generate a new
section/_index.mdfile usingdocker-compose exec hugo hugo new {section}/_index.md(yes two hugos), or edit an existing section - Commit your changes with a meaningful short message
- Push the code to your repository
git push origin fix/issue-32 - Open a pull request in this repository to the
mainbranch
-
Hugo configuration is in
config.tomlas indicated in the docs -
Every section in the sidebar is a directory with its name in
snake-caseundercontent, and an_index.mdfile at its root -
The head of
_index.mdis the definition of the section--- title: "CLI Reference" date: 2020-10-28T17:04:19Z draft: false weight: 15 hide: ["header"] head: "<hr />" ---datewill be taken care of by the engine when generating a new file withhugo newweightorganizes section in their orderhidethings to hide when the section is visited. Options are:headerandtocheadonly present for sections that need something in their head, absent in the others that don't.
