Skip to content

Commit 205fbe4

Browse files
authored
Merge pull request #4973 from oleibman/readthedocs
Docs - Properdocs, Copy Clipboard, and Dark Mode Support
2 parents f3b8124 + 51c1633 commit 205fbe4

47 files changed

Lines changed: 1067 additions & 57 deletions

Some content is hidden

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

.readthedocs..mkdocs.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Read the Docs configuration file for MkDocs projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3"
10+
11+
mkdocs:
12+
configuration: mkdocs.mkdocs.yml

.readthedocs..readthedocs.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Read the Docs configuration file for MkDocs projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3"
10+
11+
mkdocs:
12+
configuration: mkdocs.readthedocs.yml

.readthedocs.material.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Read the Docs configuration file for MkDocs projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-24.04
8+
tools:
9+
python: "3"
10+
# We recommend using a requirements file for reproducible builds.
11+
# This is just a quick example to get started.
12+
# https://docs.readthedocs.io/page/guides/reproducible-builds.html
13+
jobs:
14+
pre_install:
15+
- pip install mkdocs-material
16+
17+
mkdocs:
18+
configuration: mkdocs.material.yml

.readthedocs.materialx.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Read the Docs configuration file for MkDocs projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-24.04
8+
tools:
9+
python: "3"
10+
# We recommend using a requirements file for reproducible builds.
11+
# This is just a quick example to get started.
12+
# https://docs.readthedocs.io/page/guides/reproducible-builds.html
13+
jobs:
14+
pre_install:
15+
- pip install mkdocs-materialx
16+
17+
mkdocs:
18+
configuration: mkdocs.materialx.yml

.readthedocs.properdocs.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Read the Docs configuration file for MkDocs projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-24.04
8+
tools:
9+
python: "3"
10+
commands:
11+
# 1. Install ProperDocs and any required themes/plugins
12+
- pip install properdocs properdocs_theme_readthedocs properdocs_theme_mkdocs
13+
# 2. Build the static site using the properdocs executable
14+
- properdocs build --clean --site-dir $READTHEDOCS_OUTPUT/html

.readthedocs.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
version: 2
55

66
build:
7-
os: ubuntu-22.04
7+
os: ubuntu-24.04
88
tools:
99
python: "3"
10-
11-
mkdocs:
12-
configuration: mkdocs.yml
10+
commands:
11+
# 1. Install ProperDocs and any required themes/plugins
12+
- pip install properdocs properdocs_theme_readthedocs properdocs_theme_mkdocs
13+
# 2. Build the static site using the properdocs executable
14+
- properdocs build --clean --site-dir $READTHEDOCS_OUTPUT/html

.readthedocs.zensical.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Read the Docs configuration file for MkDocs projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-24.04
8+
tools:
9+
python: "3"
10+
jobs:
11+
install:
12+
- pip install zensical
13+
build:
14+
html:
15+
- zensical build
16+
post_build:
17+
- mkdir -p $READTHEDOCS_OUTPUT/html/
18+
- cp --recursive site/* $READTHEDOCS_OUTPUT/html/

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Some earlier branches remain supported and security fixes are applied to them; i
2323
### Changed
2424

2525
- Performance: avoid `Worksheet::getStyle()` on every `Cell::setValueExplicit()` unless quote-prefix must change. On a dense 40k-cell populate+save microbenchmark this cut wall time by ~5%. [PR #4958](https://github.com/PHPOffice/PhpSpreadsheet/pull/4958)
26+
- Infrastructure changes for documentation. [PR #4973](https://github.com/PHPOffice/PhpSpreadsheet/pull/4973)
2627

2728
### Moved
2829

docs/assets/logowithbackground.png

16.3 KB
Loading

docs/extra/copyclipboard.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* Style the injected copy button inside code wrappers */
2+
3+
.copy-code-button {
4+
position: absolute;
5+
top: 5px;
6+
right: 5px;
7+
padding: 4px 8px;
8+
font-size: 12px;
9+
color: #333;
10+
background-color: #f0f0f0;
11+
border: 1px solid #ccc;
12+
border-radius: 3px;
13+
cursor: pointer;
14+
opacity: 0.7;
15+
transition: opacity 0.2s ease-in-out;
16+
z-index: 10;
17+
}
18+
19+
.copy-code-button:hover {
20+
opacity: 1;
21+
background-color: #e0e0e0;
22+
}
23+

0 commit comments

Comments
 (0)