Skip to content

Commit

Permalink
Add "next steps" to guide users around the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cutwell committed Aug 23, 2023
1 parent b6929af commit d55dc4f
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 5 deletions.
7 changes: 7 additions & 0 deletions docs/_pages/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,10 @@ These options are for the underlying FastAPI server:
|||
|:---:|:---|
|`debug`|Boolean to enable debug mode.|

---

Next steps:

1. Learn how to [serve static files](https://cutwell.github.io/python-web-io/docs/static/), such as images or CSS files.
2. Deep dive into customising your webpage using `print()` and `input()` [overrides](https://cutwell.github.io/python-web-io/docs/io/).
16 changes: 13 additions & 3 deletions docs/_pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ permalink: /

[![Static Badge](https://img.shields.io/badge/-Cutwell%2FPython_Web_IO-white?logo=github&logoColor=white&labelColor=black&color=white&link=https%3A%2F%2Fgithub.com%2FCutwell%2Fpython-web-io)](https://github.com/Cutwell/python-web-io) [![PyPI](https://img.shields.io/pypi/v/python-web-io?style=flat-square)](https://pypi.org/project/python-web-io/)

Welcome to the Python web I/O docs.
# Why use Python Web I/O?

## License
MIT
## Ease of use
The initial concept of Python Web I/O was to enable users to generate web interfaces from any python application. Whilst this framework offers much more, this core feature enables instant integration with your Python projects.

## Production-grade
We use [FastAPI](https://fastapi.tiangolo.com/) and [Uvicorn](https://www.uvicorn.org/) as backend technologies to power Python Web I/O. Used in combination, this tech stack elevates us beyond novelty, and into something that can be deployed and used in serious use-cases.

## Highly customisable
Unlike other python-based web frameworks, we provide no pre-built components, in favour of allowing the user to develop HTML code to their precise specification. Greater customisablity = more power to the user.

---

Ready to get started? Visit our [installation](https://cutwell.github.io/python-web-io/docs/install/) and [quickstart](https://cutwell.github.io/python-web-io/docs/quickstart/) pages for a complete POC setup.
4 changes: 4 additions & 0 deletions docs/_pages/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ If evaluating / testing `python-web-io`, install dependencies for the example ap
```bash
poetry add python_web_io --with examples
```

---

Next steps: setup a POC with the [quickstart guide](https://cutwell.github.io/python-web-io/docs/quickstart/).
4 changes: 4 additions & 0 deletions docs/_pages/io.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,7 @@ input("What's your thoughts on Marmite?", type='radio', options=['love it', 'hat
<label>What's your thoughts on Marmite?</label>
<input type='radio' value='love it' required> <input type='radio' value='hate it' required>
```

---

Next steps: Learn how to [cache expensive functions](https://cutwell.github.io/python-web-io/docs/cache/) to improve latency.
6 changes: 5 additions & 1 deletion docs/_pages/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ export OPENAI_API_KEY=""
We recommend running `python_web_io` using `uvicorn`:
```bash
poetry run uvicorn python_web_io.main:app
```
```

---

Next steps: Learn more about [project configuration](https://cutwell.github.io/python-web-io/docs/config/).
2 changes: 1 addition & 1 deletion python-web-io/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Generate a webpage as a GUI for a Python script, and serve from anywhere.

## Documentation
Check out the [wiki](https://github.com/Cutwell/python-web-io/wiki).
Check out the [wiki](https://cutwell.github.io/python-web-io/).

## Quickstart

Expand Down

0 comments on commit d55dc4f

Please sign in to comment.