File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,6 @@ version: 2
10
10
# os: ubuntu-22.04
11
11
# tools:
12
12
# python: "3.10"
13
-
14
- # This pattern will be supported by a better environment variable, proposed
15
- # here: TBD
16
- build :
17
- os : ubuntu-22.04
18
- tools :
19
- python : " 3.10"
20
- jobs :
21
- pre_build :
22
- - export "MKDOCS_SITE_URL=$READTHEDOCS_PROJECT"
23
13
24
14
mkdocs :
25
15
configuration : mkdocs.yml
Original file line number Diff line number Diff line change 1
1
site_name : Basic MkDocs Example Project
2
- site_url : !ENV MKDOCS_SITE_URL
2
+ # Until https://github.com/readthedocs/readthedocs.org/issues/9781 is fixed, you need to
3
+ # define CUSTOM_CANONICAL_URL yourself as a workaround.
4
+ # (don't expose it to PRs, they build on different URLs)
5
+ # For instance, define it as https://SLUG.readthedocs.io/en/stable/
6
+ site_url : !ENV [READTHEDOCS_CANONICAL_URL, CUSTOM_CANONICAL_URL, ""]
3
7
theme :
4
8
name : readthedocs
5
9
highlightjs : true
You can’t perform that action at this time.
0 commit comments