Skip to content

Commit 4a20084

Browse files
author
shijiashuai
committed
chore(pages): optimize GitHub Pages config
- Add SEO metadata (url, baseurl, author, repository) - Add jekyll-seo-tag plugin - Add kramdown GFM + rouge config - Add layout defaults - Add exclude list for source/build files - Set show_downloads: false - Set cancel-in-progress: true in pages.yml
1 parent eac32b5 commit 4a20084

2 files changed

Lines changed: 27 additions & 23 deletions

File tree

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515

1616
concurrency:
1717
group: pages
18-
cancel-in-progress: false
18+
cancel-in-progress: true
1919

2020
jobs:
2121
build:

docs/_config.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
1-
# GPU SpMV Documentation Site
2-
# GitHub Pages + Jekyll configuration
3-
41
title: GPU SpMV
5-
description: 基于 CUDA 的高性能稀疏矩阵向量乘法库
2+
description: >-
3+
基于 CUDA 的高性能稀疏矩阵向量乘法库 — CSR/ELL 格式、Merge Path 负载均衡、自动 Kernel 选择
64
remote_theme: pages-themes/cayman@v0.2.0
7-
8-
# Build settings
9-
markdown: kramdown
10-
highlighter: rouge
11-
12-
# Plugins
135
plugins:
146
- jekyll-remote-theme
157
- jekyll-seo-tag
8+
repository: LessUp/gpu-spmv
9+
show_downloads: false
1610

17-
# Navigation
18-
nav:
19-
- title: 首页
20-
url: /
21-
- title: API 参考
22-
url: /api
23-
- title: 性能优化
24-
url: /performance
25-
26-
# SEO
27-
url: ""
28-
baseurl: "/gpu-spmv"
11+
# SEO & metadata
12+
url: https://lessup.github.io
13+
baseurl: /gpu-spmv
2914
lang: zh-CN
15+
author: LessUp
16+
17+
# Markdown rendering
18+
markdown: kramdown
19+
kramdown:
20+
input: GFM
21+
hard_wrap: false
22+
syntax_highlighter: rouge
23+
24+
# Default layout for all pages
25+
defaults:
26+
- scope:
27+
path: ""
28+
values:
29+
layout: default
3030

3131
# Exclude non-doc files
3232
exclude:
3333
- Gemfile
3434
- Gemfile.lock
3535
- vendor
36+
- "*.cu"
37+
- "*.cuh"
38+
- "*.cpp"
39+
- "*.h"

0 commit comments

Comments
 (0)