The repository of docs.lucidarch.dev.
- Clone this repository
- Clone theme:
git submodule init && git submodule update
- Run server container with
docker-compose up -d
and changes will take effect on save - Visit
http://localhost:1313
to 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 -d
and from here on changes will take effect on save - Generate a new
section/_index.md
file 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
main
branch
-
Hugo configuration is in
config.toml
as indicated in the docs -
Every section in the sidebar is a directory with its name in
snake-case
undercontent
, and an_index.md
file at its root -
The head of
_index.md
is the definition of the section--- title: "CLI Reference" date: 2020-10-28T17:04:19Z draft: false weight: 15 hide: ["header"] head: "<hr />" ---
date
will be taken care of by the engine when generating a new file withhugo new
weight
organizes section in their orderhide
things to hide when the section is visited. Options are:header
andtoc
head
only present for sections that need something in their head, absent in the others that don't.