mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Remove code and references to the disabled Sphinx extension shorturls
It has been disabled since 2018.3.4 Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
ae8ab9d7a6
commit
442cadbd37
2 changed files with 0 additions and 25 deletions
|
@ -1,24 +0,0 @@
|
|||
"""
|
||||
Short-URL redirects
|
||||
"""
|
||||
import json
|
||||
import os
|
||||
|
||||
import sphinx.ext.intersphinx
|
||||
|
||||
DOCS_URL = "https://docs.saltproject.io/en/latest/"
|
||||
|
||||
|
||||
def write_urls_index(app, exc):
|
||||
"""
|
||||
Generate a JSON file to serve as an index for short-URL lookups
|
||||
"""
|
||||
inventory = os.path.join(app.builder.outdir, "objects.inv")
|
||||
objects = sphinx.ext.intersphinx.fetch_inventory(app, DOCS_URL, inventory)
|
||||
|
||||
with open(os.path.join(app.builder.outdir, "shorturls.json"), "w") as f:
|
||||
json.dump(objects, f)
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.connect("build-finished", write_urls_index)
|
|
@ -154,7 +154,6 @@ extensions = [
|
|||
"myst_parser",
|
||||
"sphinxcontrib.spelling",
|
||||
#'saltautodoc', # Must be AFTER autodoc
|
||||
#'shorturls',
|
||||
]
|
||||
|
||||
modindex_common_prefix = ["salt."]
|
||||
|
|
Loading…
Add table
Reference in a new issue