diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 7efb9c5..87ca7a4 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -5,4 +5,5 @@ build: - mkdir -p bin - curl -sSL "https://github.com/rust-lang/mdBook/releases/download/v0.4.37/mdbook-v0.4.37-x86_64-unknown-linux-gnu.tar.gz" | tar -xvz --directory "bin" - mkdir -p $READTHEDOCS_OUTPUT/html + - echo "site-url = \"/$READTHEDOCS_LANGUAGE/$READTHEDOCS_VERSION/\"" >> doc/book.toml - bin/mdbook build doc --dest-dir=$READTHEDOCS_OUTPUT/html diff --git a/doc/book.toml b/doc/book.toml index 26aa279..98ef892 100644 --- a/doc/book.toml +++ b/doc/book.toml @@ -4,9 +4,6 @@ multilingual = false src = "src" title = "Glotzerlab-software documentation" -[output.html] -git-repository-url = "https://github.com/glotzerlab/software" - [build] create-missing = false @@ -14,3 +11,7 @@ create-missing = false # You also need to install https://github.com/Michael-F-Bryan/mdbook-linkcheck. # [output.linkcheck] # follow-web-links = true + +# [output.html] must be the last table so that .readthedocs.yaml can easily add a key to it +[output.html] +git-repository-url = "https://github.com/glotzerlab/software"