Skip to content

Commit

Permalink
Reuse parts of README.md in docs/index.md
Browse files Browse the repository at this point in the history
We want to also include some basic information of the project in the
documentation home page (but not all of it), so we use the include
extension to reuse some README sections.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
  • Loading branch information
llucax committed Dec 4, 2023
1 parent a76eda1 commit d6b2275
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

## Introduction

<!-- introduction -->

Frequenz Channels is a *channels* implementation for Python.

According to [Wikipedia](https://en.wikipedia.org/wiki/Channel_(programming)):
Expand All @@ -20,14 +22,20 @@ Frequenz Channels are mostly designed after [Go
channels](https://tour.golang.org/concurrency/2) but it also borrows ideas from
[Rust channels](https://doc.rust-lang.org/book/ch16-02-message-passing.html).

<!-- /introduction -->

## Supported Platforms

<!-- supported-platforms -->

The following platforms are officially supported (tested):

- **Python:** 3.11
- **Operating System:** Ubuntu Linux 20.04
- **Architectures:** amd64, arm64

<!-- /supported-platforms -->

## Quick Start

We assume you are on a system with Python available. If that is not the case,
Expand Down
24 changes: 12 additions & 12 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

## Introduction

Frequenz Channels is a *channels* implementation for Python.
{%
include-markdown "../README.md"
start="<!-- introduction -->"
end="<!-- /introduction -->"
%}

According to [Wikipedia](https://en.wikipedia.org/wiki/Channel_(programming)):
## Supported Platforms

> A channel is a model for interprocess communication and synchronization via
> message passing. A message may be sent over a channel, and another process or
> thread is able to receive messages sent over a channel it has a reference to,
> as a stream. Different implementations of channels may be buffered or not,
> and either synchronous or asynchronous.
Frequenz Channels are mostly designed after [Go
channels](https://tour.golang.org/concurrency/2) but it also borrows ideas from
[Rust channels](https://doc.rust-lang.org/book/ch16-02-message-passing.html).
{%
include-markdown "../README.md"
start="<!-- supported-platforms -->"
end="<!-- /supported-platforms -->"
%}

## Installation

Expand Down Expand Up @@ -77,5 +77,5 @@ $ python3
Python 3.11.4 (main, Jun 7 2023, 10:13:09) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import frequenz.channels
>>>
>>>
```
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@ plugins:
watch:
- "src"
- CONTRIBUTING.md
- README.md

0 comments on commit d6b2275

Please sign in to comment.