Skip to content

Commit 0accc9f

Browse files
authored
Merge pull request #2049 from jaimergp/move-sphinx
move sphinx sources into sphinx/
2 parents 1d3214c + 005b7cb commit 0accc9f

File tree

260 files changed

+90
-85
lines changed

Some content is hidden

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

260 files changed

+90
-85
lines changed

.ci_scripts/generate_cfep_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
TITLE_PATTERN = "<td>\s*Title\s*</td><td>\s*(.*)\s*</td>"
88
STATUS_PATTERN = "<td>\s*Status\s*</td><td>\s*(.*)\s*</td>"
99
REPO_DIR = Path(__file__).parents[1].absolute()
10-
CFEP_INDEX_RST = REPO_DIR / "src" / "orga" / "cfep-index.rst"
10+
CFEP_INDEX_RST = REPO_DIR / "sphinx" / "src" / "orga" / "cfep-index.rst"
1111

1212

1313
@dataclass

.ci_scripts/generate_html.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
repo_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
1010

11-
with open(os.path.join(repo_dir, "src", "inst_partners.yaml")) as fp:
11+
with open(os.path.join(repo_dir, "sphinx", "src", "inst_partners.yaml")) as fp:
1212
data = yaml.safe_load(fp)
1313

1414
keys = list(data.keys())
@@ -32,7 +32,7 @@
3232
print(f"bad logo for {k}: {e}")
3333
del data[k]["Logo URL"]
3434

35-
with open(os.path.join(repo_dir, "index.html.tmpl")) as fp:
35+
with open(os.path.join(repo_dir, "sphinx", "index.html.tmpl")) as fp:
3636
tmpl = jinja2.Template(fp.read())
3737

3838
context = {
@@ -51,5 +51,5 @@
5151
),
5252
}
5353

54-
with open(os.path.join(repo_dir, 'index.html'), 'w') as fp:
54+
with open(os.path.join(repo_dir, 'sphinx', 'index.html'), 'w') as fp:
5555
fp.write(tmpl.render(context))

.ci_scripts/update_docs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git config --global user.name "conda-forge-admin"
88

99
git checkout -b new_site_content
1010

11-
pushd newsfeed
11+
pushd sphinx/newsfeed
1212
pip install --no-deps .
1313
popd
1414

@@ -19,19 +19,19 @@ rm -rf docs/
1919

2020
python .ci_scripts/generate_cfep_index.py
2121

22-
pushd src
22+
pushd sphinx/src
2323

2424
# -W --keep-going: list all warnings but fail build in case there are any
2525
# -n: check validity of all links
2626
make html SPHINXOPTS="-W --keep-going -n"
2727
linkcheck_failed=0
2828
make linkcheck > /dev/null || linkcheck_failed=1
29-
python ../.ci_scripts/display_linkcheck.py _build/linkcheck/output.json
29+
python ../../.ci_scripts/display_linkcheck.py _build/linkcheck/output.json
3030

3131
if [[ "${GHREF}" != "refs/heads/main" ]]; then
3232
test "$linkcheck_failed" -eq 0
3333
fi
3434

35-
mv _build/html ../docs
35+
mv _build/html ../../docs
3636
rm -rf _build
3737
popd

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

.github/workflows/meeting-notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
date: ${{ inputs.date || 'now' }}
3030
template_path: misc/DEV_MEETING_TEMPLATE.md
31-
output_path: src/orga/minutes/%Y-%m-%d.md
31+
output_path: sphinx/src/orga/minutes/%Y-%m-%d.md
3232
hackmd_team: conda-forge
3333
force_push: true
3434
pr_body: |

.gitignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Ignore doc build
2-
src/_build/
3-
src/default.profraw
2+
sphinx/src/_build/
3+
sphinx/src/default.profraw
44

55
# Ignore newsfeed build
6-
newsfeed/build
7-
newsfeed/sphinxcontrib_newsfeed.egg-info
6+
sphinx/newsfeed/build
7+
sphinx/newsfeed/sphinxcontrib_newsfeed.egg-info
88

99
# Ignore sphinx .buildinfo metadata
1010
docs/.buildinfo
@@ -16,6 +16,6 @@ elm-stuff
1616
.DS_Store
1717

1818
# Ignore RTD redirect build
19-
rtd/_build
20-
rtd/default.profraw
21-
newsfeed/demo/_build
19+
sphinx/rtd/_build
20+
sphinx/rtd/default.profraw
21+
sphinx/newsfeed/demo/_build

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22

33
sphinx:
4-
configuration: rtd/conf.py
4+
configuration: src/rtd/conf.py
55

66
formats:
77
- htmlzip

README.md

Lines changed: 2 additions & 1 deletion
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)