|
74 | 74 |
|
75 | 75 | # -- Extensions ------------------------------------------------------------- |
76 | 76 |
|
77 | | -# |
78 | | -extensions.append('sphinxnotes.any') |
79 | | -from sphinxnotes.any import Schema, Field as F |
80 | | -# |
81 | | -version_schema = Schema('version', |
82 | | - name=F(unique=True, referenceable=True, required=True, form=F.Form.LINES), |
83 | | - attrs={'date': F(referenceable=True)}, |
84 | | - content=F(form=F.Form.LINES), |
85 | | - description_template=open('_templates/version.rst', 'r').read(), |
86 | | - reference_template='🏷️{{ title }}', |
87 | | - missing_reference_template='🏷️{{ title }}', |
88 | | - ambiguous_reference_template='🏷️{{ title }}') |
89 | | -confval_schema = Schema('confval', |
90 | | - name=F(unique=True, referenceable=True, required=True, form=F.Form.LINES), |
91 | | - attrs={ |
92 | | - 'type': F(), |
93 | | - 'default': F(), |
94 | | - 'choice': F(form=F.Form.WORDS), |
95 | | - 'versionadded': F(), |
96 | | - 'versionchanged': F(form=F.Form.LINES), |
97 | | - }, |
98 | | - content=F(), |
99 | | - description_template=open('_templates/confval.rst', 'r').read(), |
100 | | - reference_template='⚙️{{ title }}', |
101 | | - missing_reference_template='⚙️{{ title }}', |
102 | | - ambiguous_reference_template='⚙️{{ title }}') |
103 | | -example_schema = Schema('example', |
104 | | - name=F(referenceable=True), |
105 | | - attrs={'style': F()}, |
106 | | - content=F(form=F.Form.LINES), |
107 | | - description_template=open('_templates/example.rst', 'r').read(), |
108 | | - reference_template='📝{{ title }}', |
109 | | - missing_reference_template='📝{{ title }}', |
110 | | - ambiguous_reference_template='📝{{ title }}') |
111 | | -# |
112 | | -any_schemas = [ |
113 | | - version_schema, |
114 | | - confval_schema, |
115 | | - example_schema, |
116 | | -] |
117 | | -primary_domain = 'any' |
118 | | -# |
119 | | - |
120 | 77 | extensions.append('sphinx.ext.extlinks') |
121 | 78 | extlinks = { |
122 | 79 | 'issue': ('https://github.com/sphinx-notes/snippet/issues/%s', '💬%s'), |
|
138 | 95 | 'jinja': ('https://jinja.palletsprojects.com/en/latest/', None), |
139 | 96 | } |
140 | 97 |
|
141 | | -# |
142 | 98 | extensions.append('sphinxnotes.comboroles') |
143 | 99 | comboroles_roles = { |
144 | 100 | 'parsed_literal': (['literal'], True), |
145 | 101 | } |
146 | | -# |
147 | 102 |
|
148 | | -# |
| 103 | +extensions.append('sphinxnotes.project') |
| 104 | +primary_domain = 'any' |
| 105 | + |
149 | 106 | # -- Eat your own dog food -------------------------------------------------- |
150 | 107 |
|
151 | 108 | # If extensions (or modules to document with autodoc) are in another directory, |
|
163 | 120 | extensions.append('sphinxcontrib.asciinema') |
164 | 121 |
|
165 | 122 | # DOG FOOD CONFIGURATION END |
166 | | -# |
0 commit comments