Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbroll committed Sep 18, 2024
1 parent 462a258 commit d7f98e3
Show file tree
Hide file tree
Showing 113 changed files with 3,416 additions and 617 deletions.
18 changes: 17 additions & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@ MD_FILES := $(patsubst %.wu,../docs/%.md,$(WU_FILES))
WI_FILES := $(notdir $(wildcard ./include/*.wi))
MI_FILES := $(patsubst %.wi,../docs/_includes/%.md,$(WI_FILES))

all: $(MD_FILES) $(MI_FILES)
DOC_HTML_FILES := $(wildcard *.html)
DOCS_HTML_FILES := $(patsubst %.html,../docs/%.html,$(DOC_HTML_FILES))

all: $(MD_FILES) $(MI_FILES) ../docs/BUGS.html ../docs/README.html $(DOCS_HTML_FILES)

../docs/%.html: %.html
cp $< $@

../docs/README.html: ../README
echo "<pre>" > ../docs/README.html
cat ../README >> ../docs/README.html
echo "<pre>" >> ../docs/README.html

../docs/BUGS.html: ../BUGS
echo "<pre>" > ../docs/BUGS.html
cat ../BUGS >> ../docs/BUGS.html
echo "<pre>" >> ../docs/BUGS.html

../docs/%.md: %.wu wu2markdown.tcl
@cat $< | expand | ./wu2markdown.tcl > $@
Expand Down
24 changes: 12 additions & 12 deletions doc/include/table-env.wi
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
ENVIRONMENT
===========

* TABLEAWK the name of the awk interpreter to execute. The default
interpreter is #tawk.
* TABLEFUNCTIONS a path specifying directories to find the source for
undefined functions.
* TABLEAWK the name of the awk interpreter to execute. The default
interpreter is #tawk.
* TABLEFUNCTIONS a path specifying directories to find the source for
undefined functions.

Undefined user written function may be automatically included in the
text of programs. The environment variable TABLEFUNCTIONS names a
path which is searched for undefined functions. If a function is
mentioned in a user program or expression but not defined, a file
found in the TABLEFUNCTIONS path with the name of the undefined
function will be included in the program. This feature allows a
library of usefull functions to be built and accessed easily.
Undefined user written function may be automatically included in the
text of programs. The environment variable TABLEFUNCTIONS names a
path which is searched for undefined functions. If a function is
mentioned in a user program or expression but not defined, a file
found in the TABLEFUNCTIONS path with the name of the undefined
function will be included in the program. This feature allows a
library of usefull functions to be built and accessed easily.

* ARRDEL array delimiter for splitting columns into arrays.
* ARRDEL array delimiter for splitting columns into arrays.
5 changes: 2 additions & 3 deletions doc/index.wu
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Starbase Data Tables
sets.

* Top Level @{README, README.html}
* Github code repository @{jbroll/starbase, https://github.com/jbroll/starbase}
* @{Download, Download.html} Starbase Data Tables
* A Paper I wrote: @{Starbase: A User Centered Database for Astronomy, starbase.pdf}

Expand All @@ -28,12 +29,10 @@ Starbase Data Tables
* @{Introductory FAQ, FAQ.html} - By Ray Plante
* @{Astronomical Extensions Implemented at SAO, tawk.html}
* @{Starbase Programs Alphabetical Listing, starbase_ABC.html}
* @{Starbase Wiki, http://cfa-www.harvard.edu/wiki/starbase-wiki/}
* @{Starbase File Format, starbase.5.html}

* Starbase Source Code @{Browser, SRC/mains.html}
* @{Starbase "C" Function Interface, starbase.3.html}
* @{The Starbase BUGS list, BUGS}
* @{The Starbase BUGS list, BUGS.html}

* @{Other systems, Others.html} that are similar to #starbase.

Expand Down
13 changes: 11 additions & 2 deletions doc/wu2markdown.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ proc process_line {line} {
}
set header 0

if { $line eq "NAME" } {
gets stdin
return
}

if { [regexp {^===+ *$} $line] } {
set line [string repeat - [string length $line]]
}

# Handle code blocks
if {$line eq "-"} {
if {$in_code_block || $in_plus_code_block} {
Expand Down Expand Up @@ -65,8 +74,8 @@ proc process_line {line} {
# Convert links
set line [regsub {@{([^\}]+),([^\}]+)}} $line {[\1](\2)}]
set line [regsub {@\[([^]]+),([^]]+)\]} $line {[\1](\2)}]
set line [regsub -all { @\[([^ \t]+)\]} $line {[\1](\1.html)}]
set line [regsub -all { @([^ \t]+)} $line { [\1](\1.html)}]
set line [regsub -all { @\[([^ \t,]+)\]} $line {[\1](\1.html)}]
set line [regsub -all { @([^ \t,]+)} $line { [\1](\1.html)}]
set line [string map { { index.html} { index-cmd.html} { starbase.html} { index.html} } $line]

# Convert inline formatting
Expand Down
Loading

0 comments on commit d7f98e3

Please sign in to comment.