Skip to main content

Tools for integrating affiliated Sphinx sites

Project description

sphinx-affiliates

CI status License: MIT

Allow search to include documents from more than one Sphinx documentation html site.

This is useful when you have a number of github repositories under one org, are using sphinx to build documentation for all of them, and github pages to serve the artifacts. When you configure a custom domain, say https://my.site.org, for one repo in the org, any other repo's github pages (say repo2) will be visible as https://my.site.org/repo2. But the search.html from the sites will not know about eachother: they will be completely independent. This extension will solve that by

  • changing the search engine to allow loading more than one index
  • changing the search index generation process to generate an additional index
  • add configuration options to add the additional indices, from affiliate sites, to the search.html page.

To use this, install it via pip and add something like this to your conf.py

extensions = [
    'sphinx_affiliates',   # Add the extension
]

# Where this site's build is hosted, this will be the URL for all the search
# results from this site.
affiliate_options = {
    'canonical_url': "https://affiliate_search.github.io",  
}

# Other sites to add to the search of this site
sphinx_affiliates = [
    'https://abc.com/affiliate_searchindex.js',  
    'https://def.com/affiliate_searchindex.js',
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx-affiliates-0.1.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distributions

sphinx_affiliates-0.1.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

sphinx_affiliates-0.1.3-py2-none-any.whl (9.7 kB view details)

Uploaded Python 2

File details

Details for the file sphinx-affiliates-0.1.3.tar.gz.

File metadata

  • Download URL: sphinx-affiliates-0.1.3.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sphinx-affiliates-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9f3189b2ef1167a2dbcd42d1ed82d79f3c280a8121f0c864d4abc6d5f83c7887
MD5 4b07a777d813754abac5ececcf22ad57
BLAKE2b-256 15233c9cf7af14087dd6bffb6f0244ef02ea1a53797db30f3caac40485cddd25

See more details on using hashes here.

File details

Details for the file sphinx_affiliates-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sphinx_affiliates-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sphinx_affiliates-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f1994b5db60814fd670d804651e9c4b416b28c236a414d9ea0d1c23e1bb109a
MD5 7a0ad0cc72555ccdb0c8e689b36cf05c
BLAKE2b-256 49daeeb3ced6e6890a1be629c4c8661bb788f8fd8293933a5691970ed676807b

See more details on using hashes here.

File details

Details for the file sphinx_affiliates-0.1.3-py2-none-any.whl.

File metadata

  • Download URL: sphinx_affiliates-0.1.3-py2-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.18rc1

File hashes

Hashes for sphinx_affiliates-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 ca0b166c2de1cea1321a0d761513264b1a0862a5117fac1249ea604e7520496e
MD5 2bdc6803b588564c4c69d8859bc8e992
BLAKE2b-256 d7e28563429f94a99d6f4aee0c7511829cd6ef3f5479b946c67af0c51d7d925e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page