File tree Expand file tree Collapse file tree 5 files changed +47
-2
lines changed
Expand file tree Collapse file tree 5 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 2020 run : |
2121 python -m pip install --upgrade pip
2222 pip install -q -r requirements.txt
23+ sudo snap install --edge vale
2324
2425 - name : Run tests with make test
2526 run : make test
27+
28+ - name : Run vale
29+ run : |
30+ git clone https://github.com/errata-ai/Microsoft.git
31+ cp -r ./Microsoft/Microsoft ./styles
32+ VALEFILES=$(find -L ./docs/ -type d \( -path "./docs/plone.restapi/lib/*" -o -path "./docs/plone.restapi/performance/*" \) -prune -false -o -type f -name "*.md" -print)
33+ vale --no-exit $VALEFILES
Original file line number Diff line number Diff line change 1+ [
2+ {
3+ "name" : " 6 (stable)" ,
4+ "version" : " 6.0" ,
5+ "url" : " https://6.docs.plone.org/"
6+ },
7+ {
8+ "version" : " 5" ,
9+ "url" : " https://5.docs.plone.org/"
10+ },
11+ {
12+ "version" : " 4" ,
13+ "url" : " https://4.docs.plone.org/"
14+ },
15+ {
16+ "version" : " 3" ,
17+ "url" : " https://3.docs.plone.org/"
18+ }
19+ ]
Original file line number Diff line number Diff line change 44< title > {{ title|striptags|e }}{%- for parent in parents %} – {{ parent.title }}{%- endfor %}{{ titlesuffix }}</ title >
55{%- endblock %}
66
7+
78{% block footer %}
89 < script type ="text/javascript ">
910 $ ( document ) . ready ( function ( ) {
1011 // Hide empty sub menu.
11- if ( $ . trim ( $ ( ".topbar-contents .bd-toc" ) . html ( ) ) === "" ) {
12- $ ( ".topbar-contents .bd-toc" ) . css ( "visibility" , "hidden" ) ;
12+ if ( $ . trim ( $ ( ".sticky-top .bd-toc" ) . html ( ) ) === "" ) {
13+ $ ( ".sticky-top .bd-toc" ) . css ( "visibility" , "hidden" ) ;
1314 }
1415 } ) ;
1516 </ script >
Original file line number Diff line number Diff line change 1+ {%- for sidebartemplate in sidebars %}
2+ {%- include sidebartemplate %}
3+ {%- endfor %}
4+ {%- include 'version-switcher.html' -%}
Original file line number Diff line number Diff line change 123123 "plone.restapi/news" ,
124124 "plone.restapi/performance" ,
125125 "plone.restapi/src" ,
126+ "volto/developer-guidelines/branch-policy.md" ,
126127]
127128
128129html_js_files = [
224225# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_use_opensearch
225226html_use_opensearch = "https://6.docs.plone.org"
226227
228+ html_sidebars = {
229+ "**" : [
230+ "sidebar-logo.html" ,
231+ "search-field.html" ,
232+ "sbt-sidebar-nav.html" ,
233+ ]
234+ }
235+
227236html_theme_options = {
228237 "path_to_docs" : "docs" ,
229238 "repository_url" : "https://github.com/plone/documentation" ,
230239 "repository_branch" : "main" ,
231240 "use_repository_button" : True ,
232241 "use_issues_button" : True ,
233242 "use_edit_page_button" : True ,
243+ "switcher" : {
244+ "json_url" : "/_static/switcher.json" ,
245+ "version_match" : version ,
246+ },
234247 "extra_navbar" : """
235248 <p class="ploneorglink">
236249 <a href="https://plone.org">
You can’t perform that action at this time.
0 commit comments