Skip to content

Commit 9589f49

Browse files
committed
Updated mkdocs.ymk to be using the EDIT_URI env variable set by RTD build when setting edit_uri
1 parent 2785883 commit 9589f49

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

documentation/mkdocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ site_url: !ENV READTHEDOCS_CANONICAL_URL
99
# Git repository (Adds a link to the GitHub repository at the top)
1010
repo_url: https://github.com/ACCESS-NRI/access-esm1.6-configs
1111
repo_name: ACCESS-NRI/access-esm1.6-configs
12-
edit_uri: blob/main/documentation/docs/ #hopefully will fix the edit button from 404'ing, https://github.com/mkdocs/mkdocs/issues/2416
12+
13+
edit_uri: !ENV [EDIT_URI, ""]
14+
# EDIT_URI is set within the website build (ReadTheDocs) through the ACCESS-Hive-Docs repo script
15+
# https://github.com/ACCESS-NRI/ACCESS-Hive-Docs/blob/main/.readthedocs/scripts/custom_build.sh
1316

1417
# Theme
1518
theme:

0 commit comments

Comments
 (0)