mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Ensure pages in en/ use "lang: en"
This commit is contained in:
parent
6c14fb7833
commit
d0506fb227
5 changed files with 13 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -55,7 +55,8 @@ endif
|
||||||
pre-build-tests-fast: check-for-non-ascii-urls check-for-wrong-filename-assignments \
|
pre-build-tests-fast: check-for-non-ascii-urls check-for-wrong-filename-assignments \
|
||||||
check-for-missing-rpc-summaries \
|
check-for-missing-rpc-summaries \
|
||||||
check-for-missing-copyright-licenses \
|
check-for-missing-copyright-licenses \
|
||||||
check-bundle
|
check-bundle \
|
||||||
|
check-for-english-in-en-dir
|
||||||
|
|
||||||
## Post-build tests which, aggregated together, take less than 10 seconds to run on a typical PC
|
## Post-build tests which, aggregated together, take less than 10 seconds to run on a typical PC
|
||||||
post-build-tests-fast: check-for-build-errors ensure-each-svg-has-a-png check-for-liquid-errors \
|
post-build-tests-fast: check-for-build-errors ensure-each-svg-has-a-png check-for-liquid-errors \
|
||||||
|
@ -273,3 +274,7 @@ check-for-subheading-anchors:
|
||||||
check-for-javascript-in-svgs:
|
check-for-javascript-in-svgs:
|
||||||
## Security check: don't allow any SVGs that contain Javascript.
|
## Security check: don't allow any SVGs that contain Javascript.
|
||||||
$S find _site/ -name '*.svg' | xargs grep '<script' | eval $(ERROR_ON_OUTPUT)
|
$S find _site/ -name '*.svg' | xargs grep '<script' | eval $(ERROR_ON_OUTPUT)
|
||||||
|
|
||||||
|
check-for-english-in-en-dir:
|
||||||
|
## All pages must have page.lang set to work properly with the site templates
|
||||||
|
$S grep -rl -- '---' en/ | xargs grep -L '^[^#]*lang: en' | eval $(ERROR_ON_OUTPUT)
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
# This file is licensed under the MIT License (MIT) available on
|
# This file is licensed under the MIT License (MIT) available on
|
||||||
# http://opensource.org/licenses/MIT.
|
# http://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
|
lang: en
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<rss version="2.0">
|
<rss version="2.0">
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# http://opensource.org/licenses/MIT.
|
# http://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
layout: null
|
layout: null
|
||||||
|
lang: en
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
# This file is licensed under the MIT License (MIT) available on
|
# This file is licensed under the MIT License (MIT) available on
|
||||||
# http://opensource.org/licenses/MIT.
|
# http://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
|
lang: en
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<rss version="2.0">
|
<rss version="2.0">
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
# This file is licensed under the MIT License (MIT) available on
|
# This file is licensed under the MIT License (MIT) available on
|
||||||
# http://opensource.org/licenses/MIT.
|
# http://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
|
lang: en
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<rss version="2.0">
|
<rss version="2.0">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue