Files
pyscript/docs
MrValdez d68169bffb Development documentation (#1410)
* Updated the instructions for setting up the documentation environment to be clearer

* Expanded on setting up the development and documentation environments.

Moved the documentation section to its own section as it's behavior and purpose is different from the development environment.

* Added alternative to git upstream

Indented list instead of using  

* Add 'Using a Local Dev Server' to Getting Started Docs (#1400)

* Added alternative to git upstream

Indented list instead of using  

Updated the test environment section

cleaned up "reviewing your work" section to make it easier to read.

* added "setting up environment" changes to changelog

* reverted additions to changelog

---------

Co-authored-by: Jeff Glass <glass.jeffrey@gmail.com>
2023-04-26 12:28:43 +01:00
..
2022-10-06 20:48:08 +05:30
2023-03-23 17:57:49 +01:00
2023-02-28 11:37:21 +00:00
2022-12-29 23:07:39 +00:00
2022-05-17 12:08:06 -05:00
2023-02-28 11:37:21 +00:00

PyScript documentation

Welcome to the PyScript documentation directory, where you can find and contribute to discussions around PyScript and related topics.

Getting started

Before you start contributing to the documentation, it's worthwhile to take a look at the general contributing guidelines for the PyScript project. You can find these guidelines here Contributing Guidelines

Documentation Principles

The PyScript documentation is based on a documentation framework called Diátaxis. This framework helps to solve the problem of structure in technical documentation and identifies four modes of documentation - tutorials, how-to guides, technical reference and explanation. Each one of these modes answers to a different user need, fulfills a different purpose and requires a different approach to its creation.

The picture below gives a good visual representation of that separation of concerns:

pyodide-pyscript

So, please keep that in mind when contributing to the project documentation. For more information on, make sure to check their website.

Setup

The docs directory in the pyscript repository contains a Sphinx documentation project. Sphinx is a system that takes plaintext files containing documentation written in Markdown, along with static files like templates and themes, to build the static end result.

Build

To learn how to build the docs, head over the CONTRIBUTING page.

Cross-referencing

You can link to other pages in the documentation by using the {doc} role. For example, to link to the docs/README.md file, you would use:

{doc}`docs/README.md`

You can also cross-reference the python glossary by using the {term} role. For example, to link to the iterable term, you would use:

{term}`iterable`

You can also cross-reference functions, methods or data attributes by using the {attr} for example:

{py:func}`repr`

This would link to the repr function in the python builtins.