Skip to content

Commit

Permalink
fix doc link bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JianzheXiao committed Dec 7, 2023
1 parent 8998d86 commit 4c2f631
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ version = "0.0"
url_latest_version = "https://example.com"

# Repository configuration (URLs for in-page links to opening issues and suggesting changes)
github_repo = "https://github.com/bytedance/ByteMLPerf"
github_repo = "https://github.com/bytedance/ByteMLPerfWeb"
# An optional link to a related project repo. For example, the sibling repository where your product code lives.
github_project_repo = "https://github.com/Project_Name/one_repo"
github_project_repo = "https://github.com/bytedance/ByteMLPerf"

github_org = "https://github.com/bytedance"

Expand All @@ -144,7 +144,7 @@ github_org = "https://github.com/bytedance"

# Uncomment this if you have a newer GitHub repo with "main" as the default branch,
# or specify a new value if you want to reference another branch in your GitHub links
github_branch= "web-pages"
github_branch= "main"

# Google Custom Search Engine ID. Remove or comment out to disable search.
gcs_engine_id = "d72aa9b2712488cc3"
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/page-meta-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

{{ $viewURL := printf "%s/tree/%s" $gh_repo $gh_repo_path -}}
{{ $editURL := printf "%s/edit/%s" $gh_repo $gh_repo_path -}}
{{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (safeURL $.Title ) -}}
{{ $issuesURL := printf "%s/issues/new?title=%s" $gh_project_repo (safeURL $.Title ) -}}
{{ $newPageStub := resources.Get "stubs/new-page-template.md" -}}
{{ $newPageQS := querify "value" $newPageStub.Content "filename" "change-me.md" | safeURL -}}
{{ $newPageURL := printf "%s/new/%s?%s" $gh_repo (path.Dir $gh_repo_path) $newPageQS -}}
Expand All @@ -41,7 +41,7 @@
<a href="{{ $editURL }}" class="td-page-meta--edit" target="_blank" rel="noopener"><i class="fa-solid fa-pen-to-square fa-fw"></i> {{ T "post_edit_this" }}</a>
<a href="{{ $newPageURL }}" class="td-page-meta--child" target="_blank" rel="noopener"><i class="fa-solid fa-pen-to-square fa-fw"></i> {{ T "post_create_child_page" }}</a>
<a href="{{ $issuesURL }}" class="td-page-meta--issue" target="_blank" rel="noopener"><i class="fa-solid fa-list-check fa-fw"></i> {{ T "post_create_issue" }}</a>
{{ with $gh_repo -}}
{{ with $gh_project_repo -}}
{{ $project_issueURL := printf "%s/issues/new" . -}}
<a href="{{ $project_issueURL }}" class="td-page-meta--project-issue" target="_blank" rel="noopener"><i class="fa-solid fa-list-check fa-fw"></i> {{ T "post_create_project_issue" }}</a>
{{ end -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/blocks/cover-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h1 class="display-1 home-overview-title mt-0 mt-md-5 pb-4">{{ i18n "welcome" }}
<span class="home-overview-btn-bg"></span>
{{ i18n "start" }} <i class="fas fa-arrow-alt-circle-right ml-2"></i>
</a>
<a class="home-overview-btn home-overview-btn-with-no-margin" href="{{ .Site.Params.github_repo }}">
<a class="home-overview-btn home-overview-btn-with-no-margin" href="{{ .Site.Params.github_project_repo }}">
<span class="home-overview-btn-bg"></span>
Github <i class="fab fa-github ml-2 "></i>
</a>
Expand Down

0 comments on commit 4c2f631

Please sign in to comment.