Skip to content

Commit

Permalink
fixed headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Cutwell committed Aug 10, 2023
1 parent feb728d commit 913f48b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 13 deletions.
3 changes: 1 addition & 2 deletions docs/_pages/cache.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
permalink: /docs/cache/
toc: true
title: Caching expensive operations
---

# Caching expensive operations

`python-web-io` works by re-evaluating the target script after each user interaction, to progress the script to the next `input()`, etc.
This means expensive functions may be called more than once per session.
To reduce latency, a cache decorator is made available through the `python_web_io` module.
Expand Down
3 changes: 1 addition & 2 deletions docs/_pages/config.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
permalink: /docs/config/
toc: true
title: Configuration and settings
---

# Configuration and settings

The appearance of generated pages are customisable via a `config.toml` file.
Create a subdirectory `/.pythonwebio` relative to were the project will be called from, and create a `config.toml` file inside.
```
Expand Down
3 changes: 1 addition & 2 deletions docs/_pages/installation.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
permalink: /docs/install/
toc: true
title: Installation
---

# Installation

Install `python-web-io` locally using:
```bash
pip install python-web-io
Expand Down
5 changes: 2 additions & 3 deletions docs/_pages/io.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
permalink: /docs/io/
toc: true
title: I/O Overrides
---

# I/O Overrides

`input()` and `print()` are overridden to add "magic" features.

## `print()`
Expand Down Expand Up @@ -74,7 +73,7 @@ input("Enter your telephone number", type='tel', attrs={'pattern': "[0-9]{3}-[0-
<input type='tel' pattern=[0-9]{3}-[0-9]{2}-[0-9]{3}>
```

# I/O overrides
# Multiple option selection

For input types such as `button`, `radio` and `checkbox`, multiple inputs can be rendered at once. This is an optional argument for all inputs, but will only have an effect for these listed input types.

Expand Down
3 changes: 1 addition & 2 deletions docs/_pages/quickstart.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
permalink: /docs/quickstart/
toc: true
title: Quickstart guide
---

# Quickstart guide

After installing the project, some environment setup is required:

## Required setup
Expand Down
3 changes: 1 addition & 2 deletions docs/_pages/static.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
permalink: /docs/static/
toc: true
title: Serving static files
---

# Serving static files

If you wish to serve local files, such as custom `.css` stylesheets or images, they will need to be placed in the `./static` folder, relative to the project root.

```
Expand Down

0 comments on commit 913f48b

Please sign in to comment.