The repository contains sources of the Anastasiia Beliakova Library website (the mkdocs project). You can build and run the website from this repository locally. If you have Docker installed, there's no need to install and configure mkdocs.
Build the lib-beliakova
Docker image from the Containerfile:
docker build -t lib-beliakova -f Containerfile .
You may need to rebuild the image if you have changes in the Containerfile or requirements.txt files.
Start the local preview of the documentation:
-
Build the content and start the development server within the container:
docker run --rm -itp 8000:8000 -v "$(pwd):/d" lib-beliakova
-
Navigate to http://localhost:8000/ in your web browser.
You can edit markdown files from the docs
folder and the website content will be rebuilt each time you save changes. When you are done, press Ctrl
+C
to stop the container with the development server.
To publish the documentation:
-
Build the content:
docker run --rm -itp 8000:8000 -v "$(pwd):/d" lib-beliakova build
-
Copy the
site
directory content to a production web server.
To build DOCX files together with HTML, add -e ENABLE_PANDOC='1'
to the docker run
command:
docker run -e ENABLE_PANDOC='1' --rm -itp 8000:8000 -v "$(pwd):/d" lib-beliakova
Or:
docker run -e ENABLE_PANDOC='1' --rm -itp 8000:8000 -v "$(pwd):/d" lib-beliakova build
Links to DOCX files will be added at the bottom of each page.