Skip to content

Commit 418dce2

Browse files
committed
fix links problem
1 parent 0c8c519 commit 418dce2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ defaults:
2727
values:
2828
layout: "doc"
2929
nav_exclude: true
30+
prefix: '/sqlflow/'
3031
grand_parent: Documents
3132
- scope:
3233
path: "sqlflow/doc/installation.md"

_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: "README.md", "" | replace: ".md", "" | replace: '/example/', '../example/' }}
13+
{% assign href_prefix = 'href="' | append: page.prefix %}
14+
15+
{{content | replace: "README.md", "" | replace: ".md", "" | replace: 'href="/', href_prefix }}
1416

1517

0 commit comments

Comments
 (0)