File tree Expand file tree Collapse file tree 5 files changed +15896
-10
lines changed Expand file tree Collapse file tree 5 files changed +15896
-10
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ dependencies:
17
17
- pip
18
18
- python-rapidjson
19
19
- termcolor
20
+ - nodejs 20.*
Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
# configure bot account
6
- git config --global user.email
" [email protected] "
7
- git config --global user.name " conda-forge-admin"
6
+ if [[ " $CI " == " 1" ]]; then
7
+ git config --global user.email
" [email protected] "
8
+ git config --global user.name " conda-forge-admin"
9
+ git checkout -b new_site_content
10
+ fi
8
11
9
- git checkout -b new_site_content
10
12
11
13
pushd sphinx/newsfeed
12
14
pip install --no-deps .
13
15
popd
14
16
15
- python .ci_scripts/generate_html.py
16
-
17
- # build docs into docs
18
- rm -rf docs/
19
-
20
17
python .ci_scripts/generate_cfep_index.py
21
18
22
19
pushd sphinx/src
@@ -32,6 +29,13 @@ if [[ "${GHREF}" != "refs/heads/main" ]]; then
32
29
test " $linkcheck_failed " -eq 0
33
30
fi
34
31
35
- mv _build/html ../../docs
32
+ # Move rendered Sphinx docs to a static directory for Docusaurus to use
33
+ rm -rf ../../static-sphinx || true
34
+ mkdir -p ../../static-sphinx
35
+ mv _build/html ../../static-sphinx/docs
36
36
rm -rf _build
37
37
popd
38
+
39
+ # Build docusaurus site
40
+ npm install
41
+ npm run build
Original file line number Diff line number Diff line change 38
38
with :
39
39
github_token : ${{ secrets.GITHUB_TOKEN }}
40
40
publish_branch : gh-pages
41
- publish_dir : .
41
+ publish_dir : ./build
42
42
user_name : conda-forge-admin
43
43
Original file line number Diff line number Diff line change @@ -19,3 +19,26 @@ elm-stuff
19
19
sphinx /rtd /_build
20
20
sphinx /rtd /default.profraw
21
21
sphinx /newsfeed /demo /_build
22
+
23
+ # Sphinx output gets moved to Docusaurus' static folder
24
+ /static-sphinx
25
+
26
+ # Docusaurus dependencies
27
+ /node_modules
28
+
29
+ # Docusaurus production
30
+ /build
31
+
32
+ # Generated files
33
+ .docusaurus
34
+ .cache-loader
35
+
36
+ # Misc
37
+ .env.local
38
+ .env.development.local
39
+ .env.test.local
40
+ .env.production.local
41
+
42
+ npm-debug.log *
43
+ yarn-debug.log *
44
+ yarn-error.log *
You can’t perform that action at this time.
0 commit comments