GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ApprovalTests.cpp/fix_markdown.sh at master · approvals/ApprovalTests.cpp

Expand file tree

/

fix_markdown.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
30 lines (25 loc) · 1.15 KB
/

fix_markdown.sh

Copy path

File metadata and controls

executable file
·
30 lines (25 loc) · 1.15 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
OS="$(uname)"
if [ "$OS" == "Darwin" ]; then
find ./doc -name \*.md | grep -v googletest-src | xargs sed -i '' -f fix_markdown.sed
elif [ "$OS" == "Linux" ]; then
find ./doc -name \*.md | grep -v googletest-src | xargs sed -i -f fix_markdown.sed
fi
echo
echo "The following files, if any, are missing their 'top' anchor:"
find ./doc -name \*.md | grep -v .include.md | grep -v .approved.md | grep -v googletest-src | grep -v README.md | grep -v cmake-build- | grep -v '/venv/' | xargs grep -L '<a id="top"></a>' | grep -v 'relnotes_'
echo
echo "The following files in doc, if any, are missing the 'Back to User Guide' line at the end:"
find ./doc -name \*.md | grep -v .include.md | grep -v .approved.md | grep -v googletest-src | grep -v README.md | xargs grep -L 'Back to User Guide'
echo
echo "The following files, if any, are not in the User Guide (doc/README.md)"
pushd doc > /dev/null
for file in `find . -name sphinx -prune -o ! -name \*.include.md -name \*.md -print`
do
if [ $file = "./README.md" ] || [ $file = "./TemplatePage.md" ]
then
continue
fi
grep -q $file README.md || echo $file
done
popd > /dev/null
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.