Commit 1b749c80 authored by Toby Hodges's avatar Toby Hodges

check links include in subdirectories

parent 8cfefb96
Pipeline #13230 passed with stages
in 1 minute and 52 seconds
......@@ -7,8 +7,7 @@ variables:
before_script:
- bundle install
- bundle exec just-the-docs rake search:init
- python --version
# - python check_links_include.py
- python check_links_include.py
- cat _timestamp_files.txt | xargs python add_timestamp.py
test:
......
......@@ -4,17 +4,19 @@ checks every Markdown file for the `{% include links.md %}` tag
and raises an error if it's missing
'''
from sys import argv, stderr
from glob import glob
from glob import iglob
import subprocess
section_markdown_files = []
for filename in glob('*/*.md'):
for filename in iglob('*/*.md'):
if not filename.startswith('_'):
if not filename.endswith('README.md'):
section_markdown_files.append(filename)
for filename in iglob('*/*/*.md'):
if not filename.startswith('_'):
if not filename.endswith('README.md'):
section_markdown_files.append(filename)
no_tag = []
for filename in section_markdown_files:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment