Skip to content

Commit 6b71d7f

Browse files
authored
Merge pull request #201 from dgarcia360/branch-1.0
Add Scylla Sphinx Theme 1.0
2 parents 9e452be + 1b97f8d commit 6b71d7f

File tree

411 files changed

+20795
-14105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

411 files changed

+20795
-14105
lines changed

.babelrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["@babel/preset-env"],
3+
"plugins": ["@babel/plugin-proposal-class-properties"]
4+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Publish docs to GitHub Pages"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- "docs/**"
9+
jobs:
10+
release:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
persist-credentials: false
18+
fetch-depth: 0
19+
- name: Set up Python
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: 3.7
23+
- name: Build docs
24+
run: |
25+
export PATH=$PATH:~/.local/bin
26+
cd docs
27+
make multiversion
28+
- name: Deploy
29+
run: ./docs/_utils/deploy.sh
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Build docs on pull requests"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths:
8+
- "docs/**"
9+
10+
jobs:
11+
release:
12+
name: Build
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
persist-credentials: false
19+
fetch-depth: 0
20+
- name: Set up Python
21+
uses: actions/setup-python@v1
22+
with:
23+
python-version: 3.7
24+
- name: Build docs
25+
run: |
26+
export PATH=$PATH:~/.local/bin
27+
cd docs
28+
make test

.github/workflows/pages.yml

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

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ ipython_config.py
173173

174174
# pyenv
175175
.python-version
176-
poetry.lock
177176
# pipenv
178177
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
179178
# However, in case of collaboration, if having platform-specific dependencies or dependencies
@@ -213,4 +212,3 @@ dmypy.json
213212

214213
# Pyre type checker
215214
.pyre/
216-

.postcss.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
plugins: {
3+
"postcss-preset-env": {
4+
browsers: "last 2 versions",
5+
},
6+
},
7+
};

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: build-assets
5+
name: build-assets
6+
entry: npm run
7+
args: ["build"]
8+
language: system
9+
pass_filenames: false
10+
11+
- repo: https://github.com/pre-commit/mirrors-prettier
12+
rev: v2.3.0
13+
hooks:
14+
- id: prettier
15+
16+
- repo: https://github.com/psf/black
17+
rev: 21.5b1
18+
hooks:
19+
- id: black
20+
21+
- repo: git://github.com/pre-commit/pre-commit-hooks
22+
rev: v4.0.1
23+
hooks:
24+
- id: check-added-large-files
25+
- id: check-case-conflict
26+
- id: check-json
27+
- id: check-yaml
28+
- id: end-of-file-fixer
29+
exclude: "sphinx_scylladb_theme/static"
30+
- id: forbid-new-submodules
31+
- id: trailing-whitespace

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sphinx_scylladb_theme/static

CHANGELOG.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,31 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.1.25] - 05 July 2021
8+
## [1.0] - 01 September 2021
9+
10+
### Added
11+
12+
- [#201](https://github.com/scylladb/sphinx-scylladb-theme/pull/201): We’ve made a number of updates to the look and feel of the theme to improve the overall user experience.
13+
- [#201](https://github.com/scylladb/sphinx-scylladb-theme/pull/201): The static front end files (CSS, JS, and images) are now managed with `webpack`. For more information, see [Contribute to the Theme](https://sphinx-theme.scylladb.com/stable/contribute/contribute-theme.html).
14+
- [#201](https://github.com/scylladb/sphinx-scylladb-theme/pull/201): The promo banner now supports icons with the option theme option `banner_icon_path`. For more information, see [Template Options](https://sphinx-theme.scylladb.com/stable/configuration/template.html).
15+
- [#201](https://github.com/scylladb/sphinx-scylladb-theme/pull/201): The contribute button adds the option "Edit on GitHub". To configure your project to support this option, read [Template Options](https://sphinx-theme.scylladb.com/stable/configuration/template.html).
16+
- [#201](https://github.com/scylladb/sphinx-scylladb-theme/pull/201): We run hooks on every commit to automatically point out linting issues.
17+
- [#201](https://github.com/scylladb/sphinx-scylladb-theme/pull/201): The new workflow `docs-pr` runs on pull requests to make sure docs build without warnings before being merged. For more information, see [Deployment](https://sphinx-theme.scylladb.com/stable/github-pages.html).
18+
19+
### Changed
20+
21+
- [#201](https://github.com/scylladb/sphinx-scylladb-theme/pull/201): Topics boxes (cards) can be used in other sections, and not just on the home page. We now have different layouts to suit most projects' needs. Check them out at [Topic Boxes](https://sphinx-theme.scylladb.com/stable/examples/topic-box)
922

1023
### Fixed
1124

12-
- [#171](https://github.com/scylladb/sphinx-scylladb-theme/pull/194): FontAwesome 5.0 backwards compatibility.
25+
- [#201](https://github.com/scylladb/sphinx-scylladb-theme/pull/201): We've added more unit tests to the project, especially to extensions.
26+
- [#201](https://github.com/scylladb/sphinx-scylladb-theme/pull/201): We've fixed JavaScript warnings and errors raised by the console.
1327

28+
## [0.1.25] - 05 July 2021
29+
30+
### Fixed
31+
32+
- [#194](https://github.com/scylladb/sphinx-scylladb-theme/pull/194): FontAwesome 5.0 backwards compatibility.
1433

1534
## [0.1.24] - 17 June 2021
1635

@@ -52,20 +71,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5271

5372
### Added
5473

55-
- [#121](https://github.com/scylladb/sphinx-scylladb-theme/issues/121): ``smv_rename_latest_version`` setting in ``conf.py`` overrides the latest version output directory.
74+
- [#121](https://github.com/scylladb/sphinx-scylladb-theme/issues/121): `smv_rename_latest_version` setting in `conf.py` overrides the latest version output directory.
5675

5776
### Changed
5877

59-
- [#121](https://github.com/scylladb/sphinx-scylladb-theme/issues/121): Moved ``smv_latest_version`` from ``github/workflows/pages.yml`` to ``conf.py``.
78+
- [#121](https://github.com/scylladb/sphinx-scylladb-theme/issues/121): Moved `smv_latest_version` from `github/workflows/pages.yml` to `conf.py`.
6079

6180
### Removed
6281

63-
- [#121](https://github.com/scylladb/sphinx-scylladb-theme/issues/121): ``_utils/redirects.sh`` script.
82+
- [#121](https://github.com/scylladb/sphinx-scylladb-theme/issues/121): `_utils/redirects.sh` script.
6483

6584
### Fixed
6685

67-
- [#121](https://github.com/scylladb/sphinx-scylladb-theme/issues/121): ``make multiversionpreview`` was not redirecting automatically to the latest version.
68-
86+
- [#121](https://github.com/scylladb/sphinx-scylladb-theme/issues/121): `make multiversionpreview` was not redirecting automatically to the latest version.
6987

7088
## [0.1.20] - 19 Jan 2021
7189

@@ -92,7 +110,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
92110

93111
- [#103](https://github.com/scylladb/sphinx-scylladb-theme/issues/103): Report button does not break when the page title has inlines.
94112

95-
96113
## [0.1.18] - 31 Dec 2020
97114

98115
### Added
@@ -112,7 +129,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
112129

113130
- [#83](https://github.com/scylladb/sphinx-scylladb-theme/issues/83): Copyright year in the footer is now updated automatically.
114131

115-
116132
## [0.1.15] - 17 Nov 2020
117133

118134
### Added
@@ -152,6 +168,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
152168
- [#59](https://github.com/scylladb/sphinx-scylladb-theme/issues/59): All projects now share a 404 page.
153169
- [#58](https://github.com/scylladb/sphinx-scylladb-theme/issues/58): Support for redirections.
154170

171+
[1.0]: https://github.com/scylladb/sphinx-scylladb-theme/compare/0.1.25...1.0.4
155172
[0.1.25]: https://github.com/scylladb/sphinx-scylladb-theme/compare/0.1.24...0.1.25
156173
[0.1.24]: https://github.com/scylladb/sphinx-scylladb-theme/compare/0.1.23...0.1.24
157174
[0.1.23]: https://github.com/scylladb/sphinx-scylladb-theme/compare/0.1.22...0.1.23

PYPI.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
==========================
2-
Scylla Documentation Theme
3-
==========================
1+
===================
2+
Scylla Sphinx Theme
3+
===================
44

5-
Sphinx theme for ScyllaDB documentation projects.
5+
Sphinx theme for Scylla documentation projects.
66

77
`Read More: <https://github.com/scylladb/sphinx-scylladb-theme>`_

0 commit comments

Comments
 (0)