Skip to content

Commit

Permalink
update manual links and community resources
Browse files Browse the repository at this point in the history
  • Loading branch information
yetist committed Mar 8, 2023
1 parent f9c93fd commit 2e430cd
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 16 deletions.
25 changes: 20 additions & 5 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,37 @@ tocSticky = true # Whether to make TOC stick to top when scrolling. Default to t
# large = "1.1rem"
# extraLarge = "1.2rem"

[[links]]
[[manuals]]
name = "LoongArch Reference Manual - Volume 1"
url = "https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html"

[[links]]
[[manuals]]
name = "Loongson 3A5000/3B5000 Processor Reference Manual"
url = "https://loongson.github.io/LoongArch-Documentation/Loongson-3A5000-usermanual-EN.html"

[[links]]
[[manuals]]
name = "Loongson 7A1000 Bridge User Manual"
url = "https://loongson.github.io/LoongArch-Documentation/Loongson-7A1000-usermanual-EN.html"

[[links]]
[[manuals]]
name = "LoongArch ELF psABI"
url = "https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html"

[[links]]
[[manuals]]
name = "LoongArch toolchain conventions"
url = "https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html"

[[resources]]
icon ="fa-github"
name = "Great Loongson Union"
url = "https://github.com/loongson"

[[resources]]
icon ="fa-github"
name = "Loongarch64"
url = "https://github.com/loongarch64"

[[resources]]
icon ="fa-github"
name = "Loongson Community"
url = "https://github.com/loongson-community"
47 changes: 39 additions & 8 deletions config/_default/params.zh-cn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,53 @@ description = "一个极快、响应式和功能丰富的 Hugo 博客主题"
[archive]
dateFormat = "01-02"

[[links]]
[[manuals]]
name = "龙芯架构参考手册 - 卷一:基础架构"
url = "https://github.com/loongson/LoongArch-Documentation/releases/latest/download/LoongArch-Vol1-v1.00-CN.pdf"
url = "https://github.com/loongson/LoongArch-Documentation/releases/download/2022.03.17/LoongArch-Vol1-v1.00-CN.pdf"

[[links]]
[[manuals]]
name = "龙芯 3A5000/3B5000 处理器寄存器使用手册"
url = "https://github.com/loongson/LoongArch-Documentation/releases/latest/download/Loongson-3A5000-usermanual-v1.02-CN.pdf"
url = "https://github.com/loongson/LoongArch-Documentation/releases/download/2022.03.17/Loongson-3A5000-usermanual-v1.03-CN.pdf"

[[links]]
[[manuals]]
name = "龙芯 7A1000 桥片用户手册"
url = "https://github.com/loongson/LoongArch-Documentation/releases/latest/download/Loongson-7A1000-usermanual-v2.00-CN.pdf"
url = "https://github.com/loongson/LoongArch-Documentation/releases/download/2022.03.17/Loongson-7A1000-usermanual-v2.00-CN.pdf"

[[links]]
[[manuals]]
name = "龙芯架构 ELF psABI"
url = "https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-CN.html"

[[links]]
[[manuals]]
name = "龙芯架构工具链约定"
url = "https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-CN.html"

[[resources]]
icon ="fa-github"
name = "Great Loongson Union"
url = "https://github.com/loongson"

[[resources]]
icon ="fa-github"
name = "Loongarch64"
url = "https://github.com/loongarch64"

[[resources]]
icon ="fa-github"
name = "Loongson Community"
url = "https://github.com/loongson-community"

[[resources]]
name = "龙芯开源社区"
url = "http://loongnix.cn"

[[resources]]
name = "龙芯云"
url = "https://loongson-cloud-community.github.io/Loongson-Cloud-Community/"

[[resources]]
name = "LA UOSC社区"
url = "https://bbs.loongarch.org/"

[[resources]]
name = "百度贴吧"
url = "https://tieba.baidu.com/f?kw=%E9%BE%99%E8%8A%AF&ie=utf-8"
4 changes: 2 additions & 2 deletions config/_default/social.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ github = "loongarch64"
#quora = "quorausername"
#tumblr = "tumblrusername"
#reddit = "redditusername"
#telegram = "telegramusername"
#qq = "qqnumber"
telegram = "loongson_users"
qq = "922566903"
#dockerhub = "dockerhubusername"
#bitbucket = "bitbucketworkspaceid"
2 changes: 2 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[manual]
other = "Developer's Manual"
[resources]
other = "Community Resources"
2 changes: 2 additions & 0 deletions i18n/zh-cn.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[manual]
other = "开发者手册"
[resources]
other = "社区资源"
2 changes: 1 addition & 1 deletion layouts/partials/hooks/sidebar-begin.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section class="profile surface row">
<h4>{{ T "manual" }}</h4>
<ul>
{{- range .Site.Params.links -}}
{{- range .Site.Params.manuals -}}
<li><a href="{{ .url }}" target="_blank">{{ .name }}</a></li>
{{- end -}}
</ul>
Expand Down
12 changes: 12 additions & 0 deletions layouts/partials/hooks/sidebar-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<section class="profile surface row">
<h4>{{ T "resources" }}</h4>
<ul>
{{- range .Site.Params.resources -}}
<li>
{{- if .icon -}}
<i class="fab fa-fw {{ .icon }}"></i>
{{- end -}}
<a href="{{ .url }}" target="_blank">{{ .name }}</a></li>
{{- end -}}
</ul>
</section>

0 comments on commit 2e430cd

Please sign in to comment.