Skip to content

Commit d18ef4a

Browse files
committed
Merge branch 'master' of github.com:scylladb/sphinx-scylladb-theme
2 parents 94ca436 + ea32959 commit d18ef4a

File tree

6 files changed

+33
-26
lines changed

6 files changed

+33
-26
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
name: "Publish docs to GitHub Pages"
1+
name: "Docs / Publish"
22

33
on:
44
push:
55
branches:
66
- master
77
paths:
88
- "docs/**"
9+
workflow_dispatch:
10+
911
jobs:
1012
release:
11-
name: Build
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Checkout
@@ -21,11 +22,8 @@ jobs:
2122
with:
2223
python-version: 3.7
2324
- name: Build docs
24-
run: |
25-
export PATH=$PATH:~/.local/bin
26-
cd docs
27-
make multiversion
28-
- name: Deploy
25+
run: make -C docs multiversion
26+
- name: Deploy docs to GitHub Pages
2927
run: ./docs/_utils/deploy.sh
3028
env:
3129
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Build docs on pull requests"
1+
name: "Docs / Build PR"
22

33
on:
44
pull_request:
@@ -8,8 +8,7 @@ on:
88
- "docs/**"
99

1010
jobs:
11-
release:
12-
name: Build
11+
build:
1312
runs-on: ubuntu-latest
1413
steps:
1514
- name: Checkout
@@ -22,7 +21,4 @@ jobs:
2221
with:
2322
python-version: 3.7
2423
- name: Build docs
25-
run: |
26-
export PATH=$PATH:~/.local/bin
27-
cd docs
28-
make test
24+
run: make -C docs test

docs/source/commands.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
Commands
33
========
44

5-
To run the next commands you will need to have installed Python 3.7 and PIP.
5+
Use the command-line interface to run the following commands.
6+
7+
Prerequisites
8+
-------------
9+
10+
To run the following commands, you will need to have installed **Python +3.7** and **PIP** on your local environment.
11+
12+
If you are on **Windows**, you will need to run them from a Unix-based terminal such as `Git Bash <https://www.atlassian.com/git/tutorials/git-bash>`_.
613

714
Preview current branch
815
----------------------
@@ -89,4 +96,4 @@ Check for broken links on the documentation site.
8996
9097
cd docs
9198
make dirhtml
92-
make linkcheck
99+
make linkcheck

docs/source/getting-started/installation.rst

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
Installation
33
============
44

5-
This quickstart walks you through the steps required to add the documentation toolchain to a project hosted on GitHub.
5+
This quickstart walks you through the steps required to add the documentation toolchain to a ScyllaDB project hosted on GitHub.
6+
7+
Prerequisites
8+
-------------
9+
10+
Before adding the documentation toolchain to a project, you will need to have installed **Python +3.7** and **PIP** on your local environment.
11+
12+
If you are on **Windows**, you will need to run ``make`` commands from a Unix-based terminal such as `Git Bash <https://www.atlassian.com/git/tutorials/git-bash>`_.
613

714
Step 1: Download the sample project
815
-----------------------------------
@@ -12,26 +19,26 @@ Step 1: Download the sample project
1219
.. code:: console
1320
1421
project-name/
15-
├── pyproject.toml
16-
├── .github/workflows/[email protected]
17-
├── .github/workflows/[email protected]
22+
├── .github/
23+
| ├── workflows/
24+
| | ├── [email protected]
25+
| | ├── [email protected]
1826
├── docs/
1927
│ ├── _utils/
28+
│ | ├── redirections.yaml
2029
│ | ├── deploy.sh
21-
│ | ├── redirect.sh
2230
│ | ├── setup.sh
2331
│ ├── source/
2432
│ ├── Makefile
2533
26-
.. note:: If you already have docs in the project under an existing ``docs`` directory, move the doc files to the ``docs/source`` directory.
34+
.. note:: If you already have docs in the project under an existing ``docs`` directory, move the doc files to ``docs/source`` directory.
2735

2836
#. Create the file ``docs/pyproject.toml`` under the new ``docs`` folder. Copy the contents from the `pyproject.toml template <docs/_utils/pyproject_template.toml>`_.
2937

30-
3138
Step 2: Configure the theme
3239
---------------------------
3340

34-
#. Edit the file ``docs/source/conf.py`` file to suit the project needs (e.g. install new extensions, edit navigation links, ...).
41+
#. Edit the file ``docs/source/conf.py`` file to suit the project needs (e.g., edit the project name and site description, install new extensions, ...).
3542
For more information, see :doc:`Configuration <../configuration/index>`.
3643

3744
#. If you don't already have a ``.gitignore`` file in the project, place one in the root directory and include ``/docs/_build`` and ``/source/.doctrees`` in it.

sphinx_scylladb_theme/static/css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/components/_hero.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
}
3030

3131
&__img {
32-
opacity: 0.3;
3332
position: absolute;
3433
right: -18px;
3534
top: 20px;

0 commit comments

Comments
 (0)