Skip to content

Commit c9ffb83

Browse files
Revathyvenugopal162pyansys-ci-botRobPasMue
authored
feat: migrate the builds system to stb (#639)
Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: Roberto Pastor Muela <[email protected]>
1 parent c217780 commit c9ffb83

File tree

12 files changed

+41
-34
lines changed

12 files changed

+41
-34
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ MANIFEST
3535
# before PyInstaller builds the exe, so as to inject date/other infos into it.
3636
*.manifest
3737
*.spec
38-
3938
# Installer logs
4039
pip-log.txt
4140
pip-delete-this-directory.txt
@@ -163,3 +162,9 @@ doc/source/examples/gallery-examples/
163162
doc/source/sg_execution_times.rst
164163
# rendering of sphinx autoapi examples
165164
doc/source/examples/api/
165+
166+
167+
# node modules and env
168+
node_modules/
169+
.nodeenv/
170+
package-lock.json

doc/changelog.d/639.maintenance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
feat: migrate the builds system to stb

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "ansys_sphinx_theme",
3+
"repository": "https://github.com/ansys/ansys-sphinx-theme",
4+
5+
"description": "",
6+
"main": "",
7+
"scripts": {
8+
"build": "echo 'No build step needed' "
9+
},
10+
"dependencies": {},
11+
"devDependencies": {}
12+
}

pyproject.toml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
[build-system]
2-
requires = ["flit_core >=3.2,<4"]
3-
build-backend = "flit_core.buildapi"
2+
requires = [
3+
"sphinx-theme-builder >= 0.2.0b2,<1",
4+
]
5+
build-backend = "sphinx_theme_builder"
6+
7+
[tool.sphinx-theme-builder]
8+
node-version = "22.14.0"
9+
theme-name = "ansys_sphinx_theme"
410

511
[project]
612
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
@@ -63,19 +69,7 @@ changelog = [
6369
]
6470

6571
[project.entry-points."sphinx.html_themes"]
66-
ansys_sphinx_theme = "ansys_sphinx_theme"
67-
68-
[tool.flit.module]
69-
name = "ansys_sphinx_theme"
70-
71-
[tool.flit.sdist]
72-
include = [
73-
"src/ansys_sphinx_theme/theme/ansys_sphinx_theme/layout.html",
74-
"src/ansys_sphinx_theme/theme/ansys_sphinx_theme/components/breadcrumbs.html",
75-
"src/ansys_sphinx_theme/theme/ansys_sphinx_theme/theme.conf",
76-
"src/ansys_sphinx_theme/theme/ansys_sphinx_theme/_templates/",
77-
"src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/",
78-
]
72+
"ansys_sphinx_theme" = "ansys_sphinx_theme"
7973

8074
[project.urls]
8175
Home = "https://sphinxdocs.ansys.com/"
@@ -147,18 +141,18 @@ name = "Fixed"
147141
showcontent = true
148142

149143
[[tool.towncrier.type]]
150-
directory = "dependencies"
151-
name = "Dependencies"
144+
directory = "documentation"
145+
name = "Documentation"
152146
showcontent = true
153147

154148
[[tool.towncrier.type]]
155-
directory = "miscellaneous"
156-
name = "Miscellaneous"
149+
directory = "test"
150+
name = "Test"
157151
showcontent = true
158152

159153
[[tool.towncrier.type]]
160-
directory = "documentation"
161-
name = "Documentation"
154+
directory = "dependencies"
155+
name = "Dependencies"
162156
showcontent = true
163157

164158
[[tool.towncrier.type]]
@@ -167,6 +161,6 @@ name = "Maintenance"
167161
showcontent = true
168162

169163
[[tool.towncrier.type]]
170-
directory = "test"
171-
name = "Test"
172-
showcontent = true
164+
directory = "miscellaneous"
165+
name = "Miscellaneous"
166+
showcontent = true

src/ansys_sphinx_theme/assets/scripts/.gitkeep

Whitespace-only changes.

src/ansys_sphinx_theme/assets/styles/.gitkeep

Whitespace-only changes.

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
@import "sphinx-design.css";
77
@import "table-custom.css";
88
@import "sphinx-gallery.css";
9+
@import "whatsnew.css";
10+
@import "nbsphinx.css";
11+
@import "ansys-sphinx-theme-variable.css";
912

1013
/*
1114
* Code cell

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/ast-search.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import "ansys-sphinx-theme-variable.css";
2-
31
.static-search-results {
42
display: flex;
53
flex-direction: column;

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/breadcrumbs.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
/* Provided by the Sphinx base theme template at build time,
22
styles exclusively for the ansys-sphinx-theme classes. */
3-
4-
@import "ansys-sphinx-theme-variable.css";
5-
63
/**
74
* Breadcrumbs
85
*/

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/pydata-sphinx-theme-custom.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/* Changes associated with the Ansys Sphinx Theme */
22
/* for pydata-sphinx-theme */
3-
@import "ansys-sphinx-theme-variable.css";
4-
53
/*
64
*
75
* _secondary sidebar and primary sidebars

0 commit comments

Comments
 (0)