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. HTTP urls may get blocked
# as cross-site scripting
sphinx_affiliates = [
    '../other_repo1/affiliate_searchindex.js',
    'https://affiliate_search.github.io/other_repo2/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.2.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distributions

sphinx_affiliates-0.2.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

sphinx_affiliates-0.2.0-py2-none-any.whl (10.1 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: sphinx-affiliates-0.2.0.tar.gz
  • Upload date:
  • Size: 10.2 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.2.0.tar.gz
Algorithm Hash digest
SHA256 6cfdd4dbcc1455dd74ac7878a976e37e943ea2b266743030257f6c6c25e67bee
MD5 e0a45fac0bcc6bfd157bcf8f9ac20bbf
BLAKE2b-256 ca69a09fb8c2b6c2387e62fd80ffed34ede284087765376f68c03c01198c7a7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sphinx_affiliates-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb8bfb3fe09109db5b1dac112607eac8bbeebe0e072e705c3334b170c989b009
MD5 f2a6c68530479a26876ee9df2ecc845d
BLAKE2b-256 b9c0b8b8c99bf5d7c53134c9eb66e1e8da857aa70df1fb4aed4671f763ef12e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sphinx_affiliates-0.2.0-py2-none-any.whl
  • Upload date:
  • Size: 10.1 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.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 efe003ca3275a667c544e9cf6013bb51b3531dd84da83ec4ea547e288be01842
MD5 a002fb07cb51ddd7ad2bcd0df6b01967
BLAKE2b-256 9965a94beec000d9708f62dc504c5dae11f3baa45f705081a3eabacc5615e368

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