File: PKG-INFO

package info (click to toggle)
zzzeeksphinx 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 348 kB
  • sloc: python: 1,785; javascript: 158; makefile: 3
file content (120 lines) | stat: -rw-r--r-- 3,882 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Metadata-Version: 2.4
Name: zzzeeksphinx
Version: 1.6.2
Summary: Zzzeek's Sphinx Layout and Utilities.
Project-URL: Homepage, https://github.com/sqlalchemyorg/zzzeeksphinx
Author-email: Mike Bayer <mike@zzzcomputing.com>
License-Expression: MIT
License-File: LICENSE
Keywords: Sphinx
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Documentation
Requires-Dist: libsass
Requires-Dist: mako
Requires-Dist: requests
Requires-Dist: sphinx<8.3,>=8.2
Requires-Dist: sphinxcontrib-jquery
Description-Content-Type: text/x-rst

=============
zzzeeksphinx
=============

This is zzzeek's own Sphinx layout, used by SQLAlchemy.

This layout is first and foremost pulled in for the SQLAlchemy documentation
builds (and possibly other related projects).

.. note:: The stability of zzzeeksphinx is **not** guaranteed and APIs and
   behaviors can change at any time.    For use in other projects, please fork
   and/or adapt any portion of useful code as needed.

Features include:

* Uses Mako templates instead of Jinja, for more programmatic capabilities
  inside of templates.

* Layout includes an independently scrollable sidebar

* A unique (to Sphinx) "contextual" sidebar contents that shows the
  current page in context with all sibling pages (like that of MySQL's docs).
  This is a form of TOC that Sphinx doesn't typically have a lot of
  capability to do (well it could, with some simple feature adds), but
  IMO this kind of navigation is critical for very large and nested
  documentation sets, so that the navbar stays relatively small yet provides
  context as to where you are in the docs and what else is locally available.

* Modifications to autodoc which illustrate inherited classes, bases,
  method documentation illustrates if a method is only inherited from the
  base or overridden.

* A "dynamic base" feature that will, under ReadTheDocs, pull in optional
  ``.mako`` and ``.py`` files from the website of your choice
  that will serve as an alternate base template and a source of extra
  config setup, respectively, allowing the layout to be integrated into
  the layout of an external site when viewing on the web.

* A "viewsource" extension that can provide highlighted sourcecode to any
  Python file arbitrarily.

* SQLAlchemy-specific stuff, like the [SQL] popups, the dialect info
  directives.

* scss support using pyscss.


Config
======

in conf.py, the extension is::

  extensions = [
      'zzzeeksphinx',
  ]

The theme is::

  html_theme = 'zzzeeksphinx'

Other configs that SQLAlchemy has set up; these two are probably
needed::

  # The short X.Y version.
  version = "1.0"
  # The full version, including alpha/beta/rc tags.
  release = "1.0.0"

  release_date = "Not released"

Additional configs for the "dynamic site thing" look like::

  site_base = os.environ.get("RTD_SITE_BASE", "http://www.sqlalchemy.org")
  site_adapter_template = "docs_adapter.mako"
  site_adapter_py = "docs_adapter.py"

Configs which do some last-minute translation of module names
when running autodoc to display API documentation::

  autodocmods_convert_modname = {
      "sqlalchemy.sql.sqltypes": "sqlalchemy.types",
      "sqlalchemy.sql.type_api": "sqlalchemy.types",
      "sqlalchemy.sql.schema": "sqlalchemy.schema",
      "sqlalchemy.sql.elements": "sqlalchemy.sql.expression",
      "sqlalchemy.sql.selectable": "sqlalchemy.sql.expression",
      "sqlalchemy.sql.dml": "sqlalchemy.sql.expression",
      "sqlalchemy.sql.ddl": "sqlalchemy.schema",
      "sqlalchemy.sql.base": "sqlalchemy.sql.expression"
  }

  autodocmods_convert_modname_w_class = {
      ("sqlalchemy.engine.interfaces", "Connectable"): "sqlalchemy.engine",
      ("sqlalchemy.sql.base", "DialectKWArgs"): "sqlalchemy.sql.base",
  }