Skip to content

Commit

Permalink
Set up coqdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoWinterhalter committed May 24, 2024
1 parent 5c9bfb4 commit 096399d
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
jobs:

build:

runs-on: ubuntu-latest

env:
Expand Down Expand Up @@ -52,3 +52,25 @@ jobs:
# to avoid a warning at cleanup time
if: ${{ always() }}
run: sudo chown -R 1001:116 . # <--

- name: Build doc overview
uses: docker://pandoc/core:2.9
with:
args: >- # allows you to break string into multiple lines
--standalone
--output=docs/index.html
--css=coqdoc/resources/github-pandoc.css
--metadata title="LogRel Overview"
docs/index.md
- name: Setup Pages
if: github.ref_name == github.event.repository.default_branch
uses: actions/configure-pages@v3
- name: Upload artifact
if: github.ref_name == github.event.repository.default_branch
uses: actions/upload-pages-artifact@v1
with:
path: 'docs'
- name: Deploy to GitHub Pages
if: github.ref_name == github.event.repository.default_branch
id: deployment
uses: actions/deploy-pages@v1
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ time-of-build-pretty.log

Makefile.coq
Makefile.coq.conf

.DS_Store

doc/coqdoc/*
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ autosubst:
cd theories/autosubst ; \
$(MAKE) -f Makefile

force _CoqProject Makefile: ;

%: Makefile.coq force
@+$(MAKE) -f Makefile.coq $@

.PHONY: all clean autosubst
16 changes: 16 additions & 0 deletions Makefile.coq.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
GLOBFILES = $(VFILES:.v=.glob)

DOCDIR = doc
COQDOCDIR = $(DOCDIR)/coqdoc

COQDOCHTMLFLAGS = -toc --toc-depth 0 --no-lib-name --lib-subtitles --html \
--index indexpage --parse-comments -utf8

coqdoc: $(GLOBFILES) $(VFILES) $(HEADER) $(FOOTER) $(RESOURCES) $(FRONTPAGE)
$(SHOW)'COQDOC -d $(COQDOCDIR)'
$(HIDE)mkdir -p $(COQDOCDIR)
$(HIDE)$(COQDOC) $(COQDOCHTMLFLAGS) $(COQDOCLIBS) -d $(COQDOCDIR) $(VFILES)
.PHONY: coqdoc

clean::
$(HIDE)rm -rf $(COQDOCDIR)/*.html
2 changes: 2 additions & 0 deletions doc/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Formalisation of the "Dependent Ghosts Have a Reflection For Free" paper
========================================================================

0 comments on commit 096399d

Please sign in to comment.