small fixes in pdf creation script and html docs

This commit is contained in:
Stefan Frederik 2021-10-15 19:10:33 +02:00
parent 81a72b3cf7
commit 05af59ac9d
3 changed files with 6 additions and 5 deletions

4
doc/xschem_man/create_pdf_man Normal file → Executable file
View File

@ -22,12 +22,12 @@ generate_pdf () {
root_file=$1
output_file=$2
#### transform local urls to video tutorial videos to sourceforge hosted videos.
sed -i '/href *= *"video_tutorials\//s/="/="https:\/\/xschem.sourceforge.io\/stefan\/xschem_man\//' $root_file
#### copy all docs in temporary directory since we must resize images.
mkdir -p $tmpdir
cp $(dirname $root_file)/*.html $(dirname $root_file)/*.png $tmpdir
cd $tmpdir
#### transform local urls to video tutorial videos to sourceforge hosted videos.
sed -i '/href *= *"video_tutorials\//s/="/="https:\/\/xschem.sourceforge.io\/stefan\/xschem_man\//' $(basename $root_file)
#### resize images since htmldoc does not fit images in pdf pages at all.
sed -i '/<img/s/>/ width="640">/' *.html

View File

@ -105,7 +105,7 @@ p{padding: 15px 30px 10px;}
<li>If <kbd>../src/xchem.tcl</kbd> with respect to current dir is existing and
<kbd>../xschem_library</kbd> is also existing then we are starting
from a build directory, set <kbd>XSCHEM_SHAREDIR</kbd> to <kbd>&lt;current dir&gt;</kbd> and
also set <br><kbd>XSCHEM_LIBRARY_PATH</kbd> to <kbd>.:/../xschem_library/devices</kbd>.</li>
also set <br><kbd>XSCHEM_LIBRARY_PATH</kbd> to <kbd>../xschem_library/devices</kbd>.</li>
<li>Else use compile-time (generated from configure script) provided <kbd>XSCHEM_SHAREDIR</kbd>.
<li>Source system-wide xschemrc if existing: <kbd>XSCHEM_SHAREDIR/xschemrc</kbd></li>
<li>If in current dir there is a <kbd>xschemrc</kbd> file source it.</li>

View File

@ -1,5 +1,6 @@
v {xschem version=2.9.5_RC8 file_version=1.1}
v {xschem version=3.0.0 file_version=1.2 }
G {}
K {}
V {}
S {}
E {}
@ -37,7 +38,7 @@ C {code_shown.sym} 30 -310 0 0 {name=CONTROL place=end value=".ac oct 1000 100 1
settype decibel response
gnuplot amp_xschem response xlog
save all
op
* op
write amp_xschem.raw
.endc