Browse Source

docs: drop sphinxmark

sphinxmark is no longer compatible with the latest release of Sphinx
which is causing all of our documentation jobs to fail.  This patch
removes it as our current usage of openstacktheme for documentation
already provides watermarks for current branch and notices for which
branch the documentation covers.

Change-Id: I97bd423729ef2c9455a68f6ecd8e13ac77c3e84b
Mohammed Naser 2 weeks ago
parent
commit
cc83465a4b
2 changed files with 0 additions and 17 deletions
  1. 0
    1
      doc/requirements.txt
  2. 0
    16
      doc/source/conf.py

+ 0
- 1
doc/requirements.txt View File

@@ -6,5 +6,4 @@
6 6
 sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
7 7
 openstackdocstheme>=1.18.1 # Apache-2.0
8 8
 reno>=2.5.0 # Apache-2.0
9
-sphinxmark>=0.1.14 # Apache-2.0
10 9
 doc8>=0.6.0 # Apache-2.0

+ 0
- 16
doc/source/conf.py View File

@@ -23,7 +23,6 @@
23 23
 # serve to show the default.
24 24
 
25 25
 import pbr.version
26
-import os
27 26
 
28 27
 # If extensions (or modules to document with autodoc) are in another directory,
29 28
 # add these directories to sys.path here. If the directory is relative to the
@@ -41,7 +40,6 @@ import os
41 40
 extensions = [
42 41
     'openstackdocstheme',
43 42
     'sphinx.ext.autodoc',
44
-    'sphinxmark'
45 43
 ]
46 44
 
47 45
 # Add any paths that contain templates here, relative to this directory.
@@ -312,17 +310,3 @@ texinfo_documents = [
312 310
 
313 311
 # If true, do not generate a @detailmenu in the "Top" node's menu.
314 312
 # texinfo_no_detailmenu = False
315
-
316
-
317
-watermark = os.popen("git branch --contains $(git rev-parse HEAD)\
318
-| awk -F/ '/stable/ {print $2}'").read().strip(' \n\t').capitalize()
319
-if watermark == "":
320
-    watermark = "Pre-release"
321
-
322
-# -- Options for sphinxmark -----------------------------------------------
323
-sphinxmark_enable = True
324
-sphinxmark_div = 'docs-body'
325
-sphinxmark_image = 'text'
326
-sphinxmark_text = watermark
327
-sphinxmark_text_color = (128, 128, 128)
328
-sphinxmark_text_size = 70

Loading…
Cancel
Save