diff --git a/.github/workflows/publish_docs.yml b/.github/workflows/publish_docs.yml index 701cf988..df544c4b 100644 --- a/.github/workflows/publish_docs.yml +++ b/.github/workflows/publish_docs.yml @@ -9,9 +9,6 @@ concurrency: group: publish-docs cancel-in-progress: true -env: - HYDRUS_DOCS_SITE_URL: "https://hydrusnetwork.github.io/hydrus/" - jobs: deploy: runs-on: ubuntu-latest @@ -21,4 +18,4 @@ jobs: with: python-version: 3.x - run: pip install mkdocs-material - - run: mkdocs gh-deploy --force \ No newline at end of file + - run: mkdocs gh-deploy --force --config-file mkdocs-gh-pages.yml \ No newline at end of file diff --git a/mkdocs-gh-pages.yml b/mkdocs-gh-pages.yml new file mode 100644 index 00000000..e44dd8a3 --- /dev/null +++ b/mkdocs-gh-pages.yml @@ -0,0 +1,50 @@ +INHERIT: mkdocs.yml + +site_url: https://hydrusnetwork.github.io/hydrus/ + +plugins: + - redirects: + redirect_maps: + 'help/access_keys.md': 'access_keys.md' + 'help/adding_new_downloaders.md': 'adding_new_downloaders.md' + 'help/advanced.md': 'advanced.md' + 'help/advanced_parents.md': 'advanced_parents.md' + 'help/advanced_siblings.md': 'advanced_siblings.md' + 'help/changelog.md': 'changelog.md' + 'help/client_api.md': 'client_api.md' + 'help/contact.md': 'contact.md' + 'help/database_migration.md': 'database_migration.md' + 'help/downloader_completion.md': 'downloader_completion.md' + 'help/downloader_gugs.md': 'downloader_gugs.md' + 'help/downloader_intro.md': 'downloader_intro.md' + 'help/downloader_login.md': 'downloader_login.md' + 'help/downloader_parsers.md': 'downloader_parsers.md' + 'help/downloader_parsers_content_parsers.md': 'downloader_parsers_content_parsers.md' + 'help/downloader_parsers_formulae.md': 'downloader_parsers_formulae.md' + 'help/downloader_parsers_full_example_api.md': 'downloader_parsers_full_example_api.md' + 'help/downloader_parsers_full_example_file_page.md': 'downloader_parsers_full_example_file_page.md' + 'help/downloader_parsers_full_example_gallery_page.md': 'downloader_parsers_full_example_gallery_page.md' + 'help/downloader_parsers_page_parsers.md': 'downloader_parsers_page_parsers.md' + 'help/downloader_sharing.md': 'downloader_sharing.md' + 'help/downloader_url_classes.md': 'downloader_url_classes.md' + 'help/duplicates.md': 'duplicates.md' + 'help/faq.md': 'faq.md' + 'help/getting_started_downloading.md': 'getting_started_downloading.md' + 'help/getting_started_files.md': 'getting_started_files.md' + 'help/getting_started_installing.md': 'getting_started_installing.md' + 'help/getting_started_more_files.md': 'getting_started_more_files.md' + 'help/getting_started_ratings.md': 'getting_started_ratings.md' + 'help/getting_started_subscriptions.md': 'getting_started_subscriptions.md' + 'help/getting_started_tags.md': 'getting_started_tags.md' + 'help/index.md': 'index.md' + 'help/introduction.md': 'introduction.md' + 'help/ipfs.md': 'ipfs.md' + 'help/launch_arguments.md': 'launch_arguments.md' + 'help/local_booru.md': 'local_booru.md' + 'help/privacy.md': 'privacy.md' + 'help/reducing_lag.md': 'reducing_lag.md' + 'help/running_from_source.md': 'running_from_source.md' + 'help/server.md': 'server.md' + 'help/support.md': 'support.md' + 'help/tagging_schema.md': 'tagging_schema.md' + 'help/wine.md': 'wine.md' \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index ef7a8b5f..4cc6cd0b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,6 +1,6 @@ site_name: hydrus network site_description: "A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers." -site_url: !ENV [HYDRUS_DOCS_SITE_URL, ''] +site_url: '' repo_url: https://github.com/hydrusnetwork/hydrus repo_name: hydrusnetwork/hydrus use_directory_urls: false @@ -144,5 +144,4 @@ markdown_extensions: - pymdownx.tasklist: custom_checkbox: true - pymdownx.tilde - - pymdownx.snippets - \ No newline at end of file + - pymdownx.snippets \ No newline at end of file