Skip to content

Commit

Permalink
Rename README-orig.md -> README-smax.md to avoid name conflicts (site…
Browse files Browse the repository at this point in the history
… update)
  • Loading branch information
attipaci committed Sep 14, 2024
1 parent 0a62457 commit 75a1786
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 30 deletions.
47 changes: 22 additions & 25 deletions .github/workflows/dox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,35 +52,32 @@ jobs:
repository: Smithsonian/smax-clib
path: smax-clib

# - name: Check out xchange dependency
# uses: actions/checkout@v4
# with:
# repository: Smithsonian/xchange
# path: xchange
- name: Check out xchange dependency
uses: actions/checkout@v4
with:
repository: Smithsonian/xchange
path: xchange

# - name: Check out RedisX dependency
# uses: actions/checkout@v4
# with:
# repository: Smithsonian/redisx
# path: redisx
- name: Check out RedisX dependency
uses: actions/checkout@v4
with:
repository: Smithsonian/redisx
path: redisx

# - name: Generate docs
# run: make -C xchange local-dox

# - name: Generate docs
# run: make -C redisx local-dox
- name: Generate docs
run: make -C xchange local-dox

- name: Generate docs
run: make -C smax-clib local-dox
run: make -C redisx local-dox

# - name: Generate headless README for smax-clib
# run: make -C smax-clib README-orig.md
#
# - name: Generate smax-clib apidocs
# uses: mattnotmitt/[email protected]
# with:
# additional-packages: font-roboto
# working-directory: ./smax-clib
- name: Generate headless README for smax-clib
run: make -C smax-clib README-smax.md

- name: Generate smax-clib apidocs
uses: mattnotmitt/[email protected]
with:
additional-packages: font-roboto
working-directory: ./smax-clib

- name: Checkout gh-pages
uses: actions/checkout@v4
Expand All @@ -95,7 +92,7 @@ jobs:
run: |
echo '<img src="/smax-clib/resources/CfA-logo.png" alt="CfA logo" width="400" height="67" align="right">' > site/doc/README.md
echo '<br clear="all">' >> site/doc/README.md
cat smax-clib/README-orig.md >> site/doc/README.md
cat smax-clib/README-smax.md >> site/doc/README.md
- name: Copy CHANGELOG
run: cp smax-clib/CHANGELOG.md site/doc/
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*~
*.swp
README-orig.md
README-smax.md
TODO
xchange/**
redisx/**
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ FILTER_SOURCE_PATTERNS =
# (index.html). This can be useful if you have a project on for instance GitHub
# and want to reuse the introduction page also for the doxygen output.

USE_MDFILE_AS_MAINPAGE = README-orig.md
USE_MDFILE_AS_MAINPAGE = README-smax.md

# The Fortran standard specifies that for fixed formatted Fortran code all
# characters from position 72 are to be considered as comment. A common
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ test:
# Remove intermediates
.PHONY: clean
clean:
rm -f $(OBJECTS) README-orig.md gmon.out
rm -f $(OBJECTS) README-smax.md gmon.out

# Remove all generated files
.PHONY: distclean
Expand All @@ -79,10 +79,10 @@ $(LIB)/libsmax.so.$(SO_VERSION): $(SOURCES)
# Static library
$(LIB)/libsmax.a: $(OBJECTS) | $(LIB) Makefile

README-orig.md: README.md
README-smax.md: README.md
LINE=`sed -n '/\# /{=;q;}' $<` && tail -n +$$((LINE+2)) $< > $@

dox: README-orig.md
dox: README-smax.md

.INTERMEDIATE: Doxyfile.local
Doxyfile.local: Doxyfile Makefile
Expand All @@ -92,7 +92,7 @@ Doxyfile.local: Doxyfile Makefile
# Local documentation without specialized headers. The resulting HTML documents do not have
# Google Search or Analytics tracking info.
.PHONY: local-dox
local-dox: README-orig.md Doxyfile.local
local-dox: README-smax.md Doxyfile.local
doxygen Doxyfile.local

# Built-in help screen for `make help`
Expand Down

0 comments on commit 75a1786

Please sign in to comment.