Skip to content

Commit 0dcfb3b

Browse files
authored
Merge pull request #314 from Murphytron/master
add TIPs page
2 parents c422c28 + 9e8b774 commit 0dcfb3b

4 files changed

Lines changed: 22 additions & 260 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Publish Document
22

33
on:
44
workflow_dispatch: # Allows manual trigger from GitHub UI
5+
push:
6+
branches: [master] # or master
7+
schedule:
8+
- cron: '0 0 * * *'
59

610
permissions:
711
contents: write
@@ -21,12 +25,17 @@ jobs:
2125
sudo pip3 install -U pygments==2.17.2 pymdown-extensions==10.14.3
2226
sudo pip3 install mkdocs-exclude==1.0.2
2327
sudo pip3 install mkdocs-material==9.6.8
24-
sudo pip3 install jieba==0.42.1
28+
sudo pip3 install python-frontmatter GitPython requests
2529
2630
- name: Audit dependencies
2731
run: |
2832
sudo pip3 install pip-audit==2.10.0
2933
pip-audit
34+
35+
- name: Sync TRON TIPs
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
run: python3 scripts/sync_tips.py
3039

3140
- name: Build the document
3241
run: mkdocs build
File renamed without changes.

docs/overrides/base.html

Lines changed: 0 additions & 257 deletions
This file was deleted.

mkdocs.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ nav:
3131
- 账户权限管理: mechanism-algorithm/multi-signatures.md
3232
- java-tron开发:
3333
- 开发者指南: developers/java-tron.md
34-
- TIPs工作流程: developers/tips.md
34+
- TIPs工作流程: developers/tips-workflow.md
35+
- TIPs: developers/tips/
3536
- Issue工作流程: developers/issue-workflow.md
3637
- 治理流程: developers/governance.md
3738
- 配置IDE开发环境: developers/run-in-idea.md
@@ -61,6 +62,10 @@ theme:
6162
- search.suggest # 搜索时显示建议
6263
- content.code.annotate # 代码块注释
6364
- content.tooltips # 内容中的工具提示
65+
- navigation.tabs
66+
- content.tabs.link
67+
- content.code.copy
68+
- tags
6469
palette:
6570
primary: custom # 主色调
6671
accent: custom # 强调色
@@ -71,7 +76,7 @@ theme:
7176
extra_javascript:
7277
- javascripts/toc.js
7378
- javascripts/nav-toc.js
74-
- javascripts/mathjax-sri.js
79+
- 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'
7580

7681
extra_css:
7782
- stylesheets/extra.css
@@ -87,6 +92,9 @@ markdown_extensions:
8792
- pymdownx.tilde
8893
- pymdownx.tasklist
8994
- pymdownx.superfences
95+
- tables
96+
- attr_list
97+
- md_in_html
9098

9199
plugins:
92100
- search:
@@ -105,4 +113,6 @@ plugins:
105113
- introduction/overview.md
106114
- mechanism-algorithm/shielded-TRC20-contract.md
107115
- mechanism-algorithm/trc10.md
116+
- search
117+
- tags
108118

0 commit comments

Comments
 (0)