Skip to content

Commit 1ca3c9f

Browse files
committed
chore: Update project template to sphinx-notes/cookiecutter@7e07548a
1 parent 633a342 commit 1ca3c9f

File tree

6 files changed

+7
-100
lines changed

6 files changed

+7
-100
lines changed

.cruft.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/sphinx-notes/template",
3-
"commit": "c4f14dab2840eeff6352647a923642b6377d1f49",
3+
"commit": "7e07548aad55432b86d881ccdab66eb1c89986c0",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -14,7 +14,8 @@
1414
"github_repo": "snippet",
1515
"pypi_name": "sphinxnotes-snippet",
1616
"pypi_owner": "SilverRainZ",
17-
"_template": "https://github.com/sphinx-notes/template"
17+
"_template": "https://github.com/sphinx-notes/template",
18+
"_commit": "7e07548aad55432b86d881ccdab66eb1c89986c0"
1819
}
1920
},
2021
"directory": null

docs/_templates/confval.rst

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/_templates/example.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/_templates/version.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/conf.py

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -74,49 +74,6 @@
7474

7575
# -- Extensions -------------------------------------------------------------
7676

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-
12077
extensions.append('sphinx.ext.extlinks')
12178
extlinks = {
12279
'issue': ('https://github.com/sphinx-notes/snippet/issues/%s', '💬%s'),
@@ -138,14 +95,14 @@
13895
'jinja': ('https://jinja.palletsprojects.com/en/latest/', None),
13996
}
14097

141-
#
14298
extensions.append('sphinxnotes.comboroles')
14399
comboroles_roles = {
144100
'parsed_literal': (['literal'], True),
145101
}
146-
#
147102

148-
#
103+
extensions.append('sphinxnotes.project')
104+
primary_domain = 'any'
105+
149106
# -- Eat your own dog food --------------------------------------------------
150107

151108
# If extensions (or modules to document with autodoc) are in another directory,
@@ -163,4 +120,3 @@
163120
extensions.append('sphinxcontrib.asciinema')
164121

165122
# DOG FOOD CONFIGURATION END
166-
#

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test = [
5555
]
5656
docs = [
5757
"furo",
58-
"sphinxnotes-any",
58+
"sphinxnotes-project",
5959
"sphinx_design",
6060
"sphinx_copybutton",
6161
"sphinxcontrib-gtagjs",

0 commit comments

Comments
 (0)