Squashed 'third_party/immer/' content from commit ad3e3556d
git-subtree-dir: third_party/immer git-subtree-split: ad3e3556d38bb75966dd24c61a774970a7c7957e
This commit is contained in:
commit
7f19d64164
311 changed files with 74223 additions and 0 deletions
101
doc/sphinx-html-hack.bash
Executable file
101
doc/sphinx-html-hack.bash
Executable file
|
|
@ -0,0 +1,101 @@
|
|||
#!/bin/bash
|
||||
|
||||
location=`dirname $0`
|
||||
|
||||
echo "Running $0 at $location"
|
||||
|
||||
# Fixes issues described here among others
|
||||
# https://github.com/michaeljones/breathe/issues/284
|
||||
|
||||
fix-missing-class-name()
|
||||
{
|
||||
src='<span id="\([^"]*\)"></span>\(.*\)<em class="property">class </em>'
|
||||
dst='<span id=""></span>\2<em class="property">class</em><tt class="descname">\1</tt>'
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
|
||||
fix-missing-struct-name()
|
||||
{
|
||||
src='<span id="\([^"]*\)"></span>\(.*\)<em class="property">struct </em>'
|
||||
dst='<span id=""></span>\2<em class="property">struct</em><tt class="descname">\1</tt>'
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
|
||||
fix-double-using-keyword()
|
||||
{
|
||||
src='<em class="property">using</em><em class="property">using </em>'
|
||||
dst='<em class="property">using </em>'
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
|
||||
fix-do-not-repeat-type-in-member-using-declaration()
|
||||
{
|
||||
src='<em class="property">using </em><code class="descname">\(\([^:]*::\)*\)\([^ ]*\) = \([^<]*\)</code>'
|
||||
dst='<em class="property">using </em><code class="descname">\3 = \4</code>'
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
fix-do-not-repeat-type-in-member-using-declaration
|
||||
|
||||
fix-remove-double-class-name()
|
||||
{
|
||||
# src='<code class="descclassname">\([^&]*\)<\([^&]*\)>::</code>'
|
||||
# dst='<code class="descclassname">\1::</code>'
|
||||
src='<code class="descclassname">\([^<]*\)</code>'
|
||||
dst=''
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
|
||||
fix-remove-straneous-typedefs()
|
||||
{
|
||||
src='typedef '
|
||||
dst=''
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
|
||||
fix-remove-straneous-typedefs-2()
|
||||
{
|
||||
src='= typedef '
|
||||
dst='= '
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
fix-remove-straneous-typedefs-2
|
||||
|
||||
fix-remove-straneous-using-declarations()
|
||||
{
|
||||
src='<em class="property">using </em>template<><br />'
|
||||
dst=''
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
|
||||
fix-remove-straneous-template-in-using-declarations-1()
|
||||
{
|
||||
src='\(<dl class="type">\n<dt[^>]*>\)\ntemplate<><br />'
|
||||
dst='\1'
|
||||
pre=':a;N;$!ba;'
|
||||
sed -i "$pre;s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
fix-remove-straneous-template-in-using-declarations-1
|
||||
|
||||
fix-remove-straneous-template-in-using-declarations-2()
|
||||
{
|
||||
src='></span>template<><br /><span '
|
||||
dst='></span><span '
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
fix-remove-straneous-template-in-using-declarations-2
|
||||
|
||||
fix-remove-countainer-css-class-in-member-definitions-causing-overflow()
|
||||
{
|
||||
src='breathe-sectiondef\([[:alnum:] _-]*\)container'
|
||||
dst='breathe-sectiondef'
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
fix-remove-countainer-css-class-in-member-definitions-causing-overflow
|
||||
|
||||
fix-remove-inherits-from()
|
||||
{
|
||||
src='<p>Inherits from [^/]*</p>'
|
||||
dst=''
|
||||
sed -i "s@$src@$dst@g" $location/_build/html/*.html
|
||||
}
|
||||
fix-remove-inherits-from
|
||||
Loading…
Add table
Add a link
Reference in a new issue