mirror of
https://github.com/TheAnachronism/docspell.git
synced 2024-11-13 02:31:10 +00:00
5bdf728eb3
- Log levels of specific loggers can be defined in the config file (doesn't work with env variables) - Log events of background tasks carry now additional data |
||
---|---|---|
.. | ||
elm | ||
scripts | ||
site | ||
styles | ||
elm-analyse.json | ||
elm.json | ||
package.json | ||
postcss.config.js | ||
push-docs.sh | ||
README.md | ||
shell.nix | ||
tailwind.config.js | ||
yarn.lock |
Website
This is the docspell website and documentation.
Building
The website is created using zola static site generator. The (very minimal) dynamic parts are written in Elm.
Sbt is used to build the site.
Development
Install things by running yarn install
.
Open terminal for each script below:
- Starting the server
nix-shell --run "cd site && zola serve"
- Building the stylesheet
nix-shell --run ./scripts/run-styles.sh
- Building some javascript files
nix-shell --run ./scripts/run-elm.sh
Open browser at localhost:1111
.
Publishing
The above is great when editing, but doesn't fully reflect what will be finally deployed. To see this, start sbt and change into the website project.
nix-shell website/shell.nix --run sbt
sbt> project website
Build everything and check for dead links:
sbt> zolaBuildTest
sbt> zolaCheck
Testing
sbt> ghpagesSynchLocal
The final site is now generated and a simple http server can be used to see how it will look when deployed.
cd ~/.sbt/ghpages/<some-hash>/com.github.eikek/docspell-website
python -m http.server 1234
Open http://localhost:1234 in a browser.