Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use the the mdBook link preprocessor #499

Merged
merged 2 commits into from
Jan 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@
The Apalache documentation is written in markdown files in the [./src](./src)
directory and compiled using [mdbook](https://github.com/rust-lang/mdBook).

To view the documentation, visit https://apalache.informal.systems/docs/ .

## Building and previewing the documentation

To build the documentation into [../target/docs](../target/docs), run

``` sh
```sh
mdbook build
```

To start a server that will present a live updated view of the book while you
edit, run

``` sh
```sh
mdbook serve
```

Expand All @@ -30,15 +32,6 @@ Each chapter must link a file: internal links to anchors within files do not
work. There is an [open issue](https://github.com/rust-lang/mdBook/issues/167)
to fix this behavior.

### Referring to `README.md` pages

Within the book, any `README.md` page gets converted to an `index.md` page
during compilation. You can link to `README.md` pages in the `SUMMARY.md`, but
everywhere else you must write the link pointed towards `index.md`.

There is an [open issue](https://github.com/rust-lang/mdBook/issues/1268) to fix
this behavior.

## Internal documentation

Design notes and memos that are part of the documentation of our design process
Expand Down
13 changes: 8 additions & 5 deletions docs/book.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
[book]

title = "Apalache Documentation"
authors = ["Igor Konnov", "Jure Kukovec", "Andrey Kuprianov", "Shon Feder"]
src = "src"
language = "en"

[build]
[output.html]
mathjax-support = true
git-repository-url = "https://github.com/informalsystems/apalache"

[build]
build-dir = "../target/docs"
# Don't create empty files when a chapter doesn't exist
create-missing = false
# Don't rename README.md to index.md
use-default-preprocessors = false

[output.html]
mathjax-support = true
git-repository-url = "https://github.com/informalsystems/apalache"
# Do allow for file inclusion via {{ #include }}
[preprocessor.links]
10 changes: 5 additions & 5 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Summary

[Overview](./README.md)
[Overview](./index.md)

# Apalache User Manual

- [Introduction](./apalache/README.md)
- [Introduction](./apalache/index.md)
- [Getting Started](./apalache/getting-started.md)
- [Shall I use Apalache or TLC?](./apalache/apalache-or-tlc.md)
- [System Requirements](./apalache/system-reqs.md)
- [Installation](./apalache/installation/README.md)
- [Installation](./apalache/installation/index.md)
- [Prebuilt Packages](./apalache/installation/jvm.md)
- [Docker](./apalache/installation/docker.md)
- [Source](./apalache/installation/source.md)
Expand All @@ -29,7 +29,7 @@

# TLA+ Language Manual for Engineers

- [Introduction](./lang/README.md)
- [Introduction](./lang/index.md)
- [The standard operators of TLA+](./lang/standard-operators.md)
- [Booleans](./lang/booleans.md)
- [Control And Nondeterminism](./lang/control-and-nondeterminism.md)
Expand All @@ -54,7 +54,7 @@

# Idiomatic TLA+

- [Introduction](./idiomatic/README.md)
- [Introduction](./idiomatic/index.md)
- [Keep state variables to the minimum](idiomatic/000keep-minimum-state-variables.md)
- [Update state variables with assignments](idiomatic/001assignments.md)
- [Apply primes only to state variables](idiomatic/002primes.md)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.