Skip to content

Commit

Permalink
Merge pull request #943 from GaloisInc/feature-remote-api-docs
Browse files Browse the repository at this point in the history
Remote API Docs
  • Loading branch information
Aaron Tomb authored Dec 3, 2020
2 parents 7d8e7ea + ea36de4 commit 14bab8f
Show file tree
Hide file tree
Showing 7 changed files with 655 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/argo
2 changes: 1 addition & 1 deletion deps/cryptol
1 change: 1 addition & 0 deletions saw-remote-api/docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_build/
35 changes: 35 additions & 0 deletions saw-remote-api/docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Documentation taken from Argo
# Edit ARGODOCS if the dependency path changes; add reST files to ARGODEPS
# that live in Argo but are needed here
ARGODOCS = ../../deps/argo/docs
ARGODEPS = Protocol.rst

# Documentation taken from Cryptol Remote API
# Edit CRYPTOLDOCS if the dependency path changes; add reST files to
# CRYPTOLDEPS that live in Cryptol but are needed here
CRYPTOLDOCS = ../../deps/cryptol/cryptol-remote-api/docs
CRYPTOLDEPS = Cryptol.rst Errors.rst

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
cp $(foreach d,$(ARGODEPS),$(ARGODOCS)/$(d)) .
cp $(foreach d,$(CRYPTOLDEPS),$(CRYPTOLDOCS)/$(d)) .
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
rm $(ARGODEPS) $(CRYPTOLDEPS)
Loading

0 comments on commit 14bab8f

Please sign in to comment.