Skip to content

Commit 6a90835

Browse files
authored
Only build social plugin on ci (#326)
1 parent 627e6eb commit 6a90835

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/docs.yml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
build:
1717
name: Deploy Python docs
1818
runs-on: ubuntu-latest
19+
# Used for configuring social plugin in mkdocs.yml
20+
# Unclear if this is always set in github actions
21+
env:
22+
CI: "TRUE"
1923
steps:
2024
- uses: actions/checkout@v4
2125
# We need to additionally fetch the gh-pages branch for mike deploy

mkdocs.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ extra_css:
126126
plugins:
127127
- blog
128128
- search
129-
- social
129+
- social:
130+
enabled: !ENV [CI, false]
130131
- mike:
131132
alias_type: "copy"
132133
canonical_version: "latest"

0 commit comments

Comments
 (0)