1. Prometheus Research, LLC
  2. Prometheus
  3. htsql


Kirill Simonov  committed f97f27c

Added documentation parameter `build_website`.

  • Participants
  • Parent commits 9e6fda7
  • Branches default

Comments (0)

Files changed (2)

File doc/conf.py

View file
  • Ignore whitespace
 # -- General configuration -----------------------------------------------------
+# Set when building documentation for htsql.org.
+build_website = False
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinxext_htsqldoc', 'sphinxext_texdiag']
+extensions = ['sphinx.ext.ifconfig', 'sphinx.ext.autodoc',
+              'sphinxext_htsqldoc', 'sphinxext_texdiag']
 # The default URL of an HTSQL service.
 htsql_server = 'http://demo.htsql.org'

File src/sphinxext_htsqldoc/__init__.py

View file
  • Ignore whitespace
 def setup(app):
     app.add_config_value('htsql_server', None, 'env')
+    app.add_config_value('build_website', False, 'env')
     app.add_directive('htsql-server', HTSQLServerDirective)
     app.add_directive('htsql', HTSQLDirective)
     app.add_directive('vsplit', VSplitDirective)