Skip to content

Commit 10c9fcb

Browse files
authored
Various fixes (#485)
* Fix Google Analytics token. Currently it's using the one from spack.readthedocs.io, which means the analytics from our docs are unreliable * Ensure conf.py is in sync with spack/spack * Use the same formatter as in spack/spack * Fix a typo * Fix Python/YAML style, and fix a few syntax errors related to it * Fix includes of build system modules * Fix include of a command output * Enable warning = error to avoid issues in the future...
1 parent 50d9e65 commit 10c9fcb

21 files changed

+658
-1195
lines changed

.github/workflows/style.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
with:
1515
python-version: '3.13'
1616

17+
- name: Install dependencies
18+
run: pip install -r requirements.txt
19+
1720
- name: Run RST Formatter
18-
run: |
19-
bin/format_rst_file.py --check *.rst
21+
run: ./bin/format_rst_file.py $(git ls-files '*.rst')

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
path = _spack_root
33
url = https://github.com/spack/spack.git
44
branch = releases/v1.0
5+
[submodule "_spack_packages"]
6+
path = _spack_packages
7+
url = https://github.com/spack/spack-packages
8+
branch = releases/v2025.07

.readthedocs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ build:
1515
# golang: "1.20"
1616
apt_packages:
1717
- graphviz
18+
jobs:
19+
post_checkout:
20+
- git fetch --unshallow || true # get accurate "Last updated on" info
1821

1922
# Build documentation in the "docs/" directory with Sphinx
2023
sphinx:
2124
configuration: conf.py
2225
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
2326
# builder: "dirhtml"
2427
# Fail on all warnings to avoid broken references
25-
# fail_on_warning: true
28+
fail_on_warning: true
2629

2730
# We need to include the _spack_root submodule to get the logo image
2831
submodules:

_spack_packages

Submodule _spack_packages added at 4ff5737

_templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
{%- block extrahead %}
44
<!-- Google tag (gtag.js) -->
5-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-S0PQ7WV75K"></script>
5+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3N7XQV9Z1J"></script>
66
<script>
77
window.dataLayer = window.dataLayer || [];
88
function gtag(){dataLayer.push(arguments);}
99
gtag('js', new Date());
10-
gtag('config', 'G-S0PQ7WV75K');
10+
gtag('config', 'G-3N7XQV9Z1J');
1111
</script>
1212
{%- if READTHEDOCS %}
1313
<meta name="readthedocs-addons-api-version" content="1">

0 commit comments

Comments
 (0)