Skip to content

Commit 8d7efce

Browse files
authored
Merge pull request #62 from mxz96102/merge2main
Fix links problem in docs
2 parents 643cfb9 + 39bcc23 commit 8d7efce

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

_config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defaults:
2323
layout: "doc"
2424
nav_exclude: true
2525
grand_parent: SQLFlow
26+
prefix: '/sqlflow/'
2627
- scope:
2728
path: "sqlflow/doc/installation.md"
2829
values:
@@ -79,6 +80,10 @@ defaults:
7980
values:
8081
nav_exclude: false
8182
parent: Contribute
83+
- scope:
84+
path: "pysqlflow"
85+
values:
86+
prefix: '/pysqlflow/'
8287
- scope:
8388
path: "pysqlflow/doc/desigin/client_design_doc.md"
8489
values:
@@ -94,6 +99,7 @@ defaults:
9499
values:
95100
layout: doc
96101
parent: GoHive
102+
prefix: '/gohive/'
97103

98104

99105
footer:

_layouts/doc.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ layout: default
1010
a {color: #1BA2FF}
1111
</style>
1212

13-
{{content | replace: "/example/" , "/sqlflow/example/"| replace: "doc/figures/" , "/sqlflow/doc/figures/"}}
13+
{% assign href_prefix = 'href="' | append: page.prefix %}
14+
15+
{{content | replace: "README.md", "" | replace: ".md", "" | replace: 'href="/', href_prefix }}
1416

1517

gohive

0 commit comments

Comments
 (0)