diff --git a/.circleci/config.yml b/.circleci/config.yml index d9bb1cf9..33c2c365 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,11 +16,14 @@ jobs: - run: name: Build site command: | - sed -i '/^theme/a relativeURLs: true' doc/config.yml - sed -i '/^theme/a themesdir: "../.."' doc/config.yml - sed -i 's/getstarted/getstarted\/index.html/g' doc/config.yml - sed -i 's/link: \//link: \/index.html/g' doc/config.yml - cd doc ; hugo + (cd doc ; + sed -i '1s/^/uglyurls: true\n/' config.yaml ; + sed -i 's/\(url: \/.\+\)\//\1.html/' config.yaml ; + sed -i 's/url: \/$/url: \/index.html/' config.yaml ; + sed -i 's/\(link: \/.\+\)\//\1.html/' config.yaml ; + sed -i 's/\(buttonlink: \/.\+\)\//\1.html/' config.yaml ; + sed -i 's/link: \/$/link: \/index.html/' config.yaml ; + hugo --themesDir="../..") - store_artifacts: path: doc/public/ diff --git a/doc/config.yml b/doc/config.yaml similarity index 87% rename from doc/config.yml rename to doc/config.yaml index 36feabac..ed6b2257 100644 --- a/doc/config.yml +++ b/doc/config.yaml @@ -2,6 +2,8 @@ baseURL: "https://theme.scientific-python.org/" languageCode: "en-us" title: "Scientific Python Hugo Theme documentation" theme: scientific-python-hugo-theme +relativeURLs: true +disableKinds: ["term", "taxonomy"] params: images: @@ -16,7 +18,7 @@ params: title: Hugo Theme subtitle: Used by core projects in the scientific Python ecosystem. buttontext: Go to docs - buttonlink: getstarted + buttonlink: /getstarted/ image: logo.svg navbar: - title: GitHub