Skip to content

Commit d6b2275

Browse files
committed
Reuse parts of README.md in docs/index.md
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 <[email protected]>
1 parent a76eda1 commit d6b2275

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
## Introduction
88

9+
<!-- introduction -->
10+
911
Frequenz Channels is a *channels* implementation for Python.
1012

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

25+
<!-- /introduction -->
26+
2327
## Supported Platforms
2428

29+
<!-- supported-platforms -->
30+
2531
The following platforms are officially supported (tested):
2632

2733
- **Python:** 3.11
2834
- **Operating System:** Ubuntu Linux 20.04
2935
- **Architectures:** amd64, arm64
3036

37+
<!-- /supported-platforms -->
38+
3139
## Quick Start
3240

3341
We assume you are on a system with Python available. If that is not the case,

docs/index.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
## Introduction
44

5-
Frequenz Channels is a *channels* implementation for Python.
5+
{%
6+
include-markdown "../README.md"
7+
start="<!-- introduction -->"
8+
end="<!-- /introduction -->"
9+
%}
610

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

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

1919
## Installation
2020

@@ -77,5 +77,5 @@ $ python3
7777
Python 3.11.4 (main, Jun 7 2023, 10:13:09) [GCC 12.2.0] on linux
7878
Type "help", "copyright", "credits" or "license" for more information.
7979
>>> import frequenz.channels
80-
>>>
80+
>>>
8181
```

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ plugins:
133133
watch:
134134
- "src"
135135
- CONTRIBUTING.md
136+
- README.md

0 commit comments

Comments
 (0)