Skip to content

Commit

Permalink
fix: Adapt to work with more recent Jekyll versions (#4981)
Browse files Browse the repository at this point in the history
Fixes #4980
  • Loading branch information
fabiomadge authored Jan 12, 2024
1 parent 599e988 commit e635b81
Show file tree
Hide file tree
Showing 17 changed files with 68 additions and 17 deletions.
4 changes: 3 additions & 1 deletion docs/Compilation/AutoInitialization.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Automatic Initialization of Variables
---

Automatic Initialization of Variables
=====================================
Expand Down
4 changes: 3 additions & 1 deletion docs/Compilation/Boogie.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Dafny compilation to Boogie
---

# Dafny compilation to Boogie

Expand Down
4 changes: 3 additions & 1 deletion docs/Compilation/Go.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Dafny compilation to Go
---

Dafny compilation to Go
=======================
Expand Down
4 changes: 3 additions & 1 deletion docs/Compilation/ReferenceTypes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Dafny compilation of trait and class
---

Dafny compilation of trait and class
====================================
Expand Down
4 changes: 3 additions & 1 deletion docs/Compilation/StringsAndChars.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Strings and Characters
---

# Strings and Characters

Expand Down
4 changes: 2 additions & 2 deletions docs/HowToFAQ/FAQForallTricks.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Why can't I write 'forall t: Test :: t.i == 1' for an object t?
title: "Why can't I write `forall t: Test :: t.i == 1` for an object `t`?"
---

## Question:

Why can't I write `forall t: Test :: t.i == 1` for an object t?
Why can\'t I write `forall t: Test :: t.i == 1` for an object `t`?

## Answer:

Expand Down
2 changes: 1 addition & 1 deletion docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ To setup Dafny to compile to python3:

To separately compile and run your program for Python:
- `dafny build -t:py MyProgram.dfy`
- `python3 MyProgram-py/MyProgram.py
- `python3 MyProgram-py/MyProgram.py`

### Rust

Expand Down
4 changes: 3 additions & 1 deletion docs/OnlineTutorial/Lemmas.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Lemmas and Induction
---

# Lemmas and Induction

Expand Down
4 changes: 3 additions & 1 deletion docs/OnlineTutorial/Modules.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Modules
---

# Modules

Expand Down
4 changes: 3 additions & 1 deletion docs/OnlineTutorial/Sequences.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Sequences
---

# Sequences

Expand Down
4 changes: 3 additions & 1 deletion docs/OnlineTutorial/Sets.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Sets
---

# Sets

Expand Down
4 changes: 3 additions & 1 deletion docs/OnlineTutorial/Termination.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Termination
---

# Termination

Expand Down
4 changes: 3 additions & 1 deletion docs/OnlineTutorial/ValueTypes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: Collection Types
---

# Collection Types

Expand Down
4 changes: 3 additions & 1 deletion docs/OnlineTutorial/guide.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p></p> <!-- avoids duplicate title -->
---
title: "Getting Started with Dafny: A Guide"
---

# Getting Started with Dafny: A Guide

Expand Down
5 changes: 3 additions & 2 deletions docs/QuickReference.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<p></p>
<link rel="stylesheet" href="assets/main.css">
---
title: Dafny Quick Reference
---

# Dafny Quick Reference

Expand Down
8 changes: 8 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,11 @@ exclude:
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- "*.expect"

defaults:
-
scope:
path: "" # an empty string here means all files in the project
values:
layout: "single"
18 changes: 18 additions & 0 deletions docs/_layouts/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">

{%- include head.html -%}

<body>

<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
</div>
</main>

{%- include footer.html -%}

</body>

</html>

0 comments on commit e635b81

Please sign in to comment.