This repository was archived by the owner on Nov 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed
Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 3030
3131# Transform project configuration
3232def transform (project : MkDocsConfig , config : MkDocsConfig ):
33- root = os .path .dirname (project .config_file_path )
34- name = os .path .basename (root )
33+ base = os .path .dirname (project .config_file_path )
34+ name = os .path .basename (base )
35+
36+ # Determine path of examples relative to root
37+ root = os .path .dirname (config .config_file_path )
38+ path = os .path .relpath (base , root )
3539
3640 # Inherit settings for repository
3741 project .repo_name = config .repo_name
38- project .repo_url = config .repo_url
42+ project .repo_url = f" { config .repo_url } /tree/master/ { path } "
3943
4044 # Inherit settings for site URL and edit URI
4145 project .site_url = posixpath .join (config .site_url , name , "" )
Original file line number Diff line number Diff line change 1- ---
2- title : Overview
3- ---
4-
51# Adding a cookie consent
62
73This example shows how to add a [ cookie consent] . [ Click here] to bring
Original file line number Diff line number Diff line change 1- ---
2- title : Overview
3- ---
4-
51# Adding a custom cookie
62
73This example shows how to add a [ custom cookie] to the [ cookie consent] and
You can’t perform that action at this time.
0 commit comments