Skip to content

Instantly share code, notes, and snippets.

@MkhytarMkhoian
Created February 21, 2024 21:46
Show Gist options
  • Save MkhytarMkhoian/689ec449f99ede71b9d4f239256cc587 to your computer and use it in GitHub Desktop.
Save MkhytarMkhoian/689ec449f99ede71b9d4f239256cc587 to your computer and use it in GitHub Desktop.
#!/bin/bash
# The website is built using MkDocs with the Material theme.
# https://squidfunk.github.io/mkdocs-material/
# It requires Python to run.
# Install the packages with the following command:
# pip install mkdocs mkdocs-material mkdocs-redirects
set -ex
# Generate the API docs
./gradlew dokkaHtmlMultiModule
#mv ./build/dokka/api android-docs/docs
# Build the site locally
cd ./android-docs
python3 -m venv venv
source venv/bin/activate
pip3 install mkdocs-material
mkdocs build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment