File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 297297# }
298298
299299extensions .append ('sphinxnotes.lilypond' )
300- lilypond_audio_volume = 300
300+ lilypond_audio_volume = 300.0
301301lilypond_audio_format = 'mp3'
302302lilypond_include_paths = ['/p/ly/inc' ]
303303
304304extensions .append ('sphinxnotes.recentupdate' )
305- recentupdate_date_format = _datefmt
306- recentupdate_exclude_path = []
305+ recentupdate_count = 5
307306recentupdate_exclude_commit = ['skip-recentupdate' , 'conf' ]
308307
309308if _D .is_public ():
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ sphinx-sitemap
2020sphinxcontrib-plantuml
2121sphinxcontrib.asciinema
2222sphinx-reredirects
23- sphinxnotes-recentupdate >= 1.1
23+ sphinxnotes-recentupdate >= 2.0
2424sphinxnotes-mock
2525sphinxext-opengraph
2626matplotlib # for generating social cards
Original file line number Diff line number Diff line change 1616
1717.. container :: buttons
1818
19- :ref: ` 联系我 < contact-me >`
20- ` 源码 < https://github.com/SilverRainZ/bullet >`_
19+ 最近更新_
20+ :ref: ` 联系我吧 < contact-me >`
2121
2222.. grid :: 1 1 2 3
2323 :gutter: 1
7272 blog/transit/category
7373 blog/transit/tag
7474 blog/transit/feed
75+
76+ 最近更新
77+ ========
78+
79+ .. data.render::
80+
81+ {% set revs = load_extra('recentupdate', count=8) %}
82+
83+ .. container:: timeline
84+
85+ {% for r in revs %}
86+ .. card:: :octicon:`calendar` {{ r.date.strftime('%Y-%m-%d') }}
87+ :width: 50%
88+ :margin: 0 2 {{ loop.cycle('0 auto', 'auto 0') }}
89+ :class-card: surface
90+
91+ {% if r.changed_docs %}
92+ :修改了: {{ r.changed_docs | roles("doc") | join("、") }}
93+ {% endif %}
94+ {% if r.added_docs %}
95+ :新增了: {{ r.added_docs | roles("doc") | join("、") }}
96+ {% endif %}
97+ {% if r.removed_docs %}
98+ :删除了: {{ r.removed_docs | join("、") }}
99+ {% endif %}
100+ {% endfor %}
Original file line number Diff line number Diff line change @@ -66,24 +66,26 @@ SilverRainZ 的笔记
6666最近更新
6767========
6868
69- .. recentupdate :: 5
69+ .. data.render::
7070
71- .. grid :: 1 1 2 2
72- :gutter: 2
73- :padding: 0
74- :class-row: surface
71+ {% set revs = load_extra('recentupdate', count=8) %}
7572
76- {% for r in revisions %}
77- .. grid-item-card :: :octicon:`calendar` {{ r.date | strftime }}
73+ .. container:: timeline
7874
79- {% if r.modification %}
80- :修改了: {{ r.modification | roles("doc") | join("、") }}
75+ {% for r in revs %}
76+ .. card:: :octicon:`calendar` {{ r.date.strftime('%Y-%m-%d') }}
77+ :width: 50%
78+ :margin: 0 2 {{ loop.cycle('0 auto', 'auto 0') }}
79+ :class-card: surface
80+
81+ {% if r.changed_docs %}
82+ :修改了: {{ r.changed_docs | roles("doc") | join("、") }}
8183 {% endif %}
82- {% if r.addition %}
83- :新增了: {{ r.addition | roles("doc") | join("、") }}
84+ {% if r.added_docs %}
85+ :新增了: {{ r.added_docs | roles("doc") | join("、") }}
8486 {% endif %}
85- {% if r.deletion %}
86- :删除了: {{ r.deletion | join("、") }}
87+ {% if r.removed_docs %}
88+ :删除了: {{ r.removed_docs | join("、") }}
8789 {% endif %}
8890 {% endfor %}
8991
You can’t perform that action at this time.
0 commit comments