Skip to content

Commit 028525a

Browse files
committed
v3/docs/SCHEDULE.md fix links.
1 parent cadb635 commit 028525a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

v3/docs/SCHEDULE.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# 0. Contents
2+
13
1. [Scheduling tasks](./SCHEDULE.md#1-scheduling-tasks)
24
2. [Overview](./SCHEDULE.md#2-overview)
35
3. [Installation](./SCHEDULE.md#3-installation)
@@ -47,7 +49,7 @@ function takes a `cron` instance and a callback and causes that callback to run
4749
at the times specified by the `cron`. A coroutine may be substituted for the
4850
callback - at the specified times it will be promoted to a `Task` and run.
4951

50-
##### [Top](./SCHEDULE.md#1-scheduling-tasks)
52+
##### [Top](./SCHEDULE.md#0-contents)
5153

5254
# 3. Installation
5355

@@ -77,7 +79,7 @@ numbers are shown as inclusive ranges.
7779
5. `month=None` Months (1..12).
7880
6. `wday=None` Weekday (0..6 Mon..Sun).
7981

80-
##### [Top](./SCHEDULE.md#1-scheduling-tasks)
82+
##### [Top](./SCHEDULE.md#0-contents)
8183

8284
## 4.1 Time specifiers
8385

@@ -114,7 +116,7 @@ now = int(time.time()) # Unix build returns a float here
114116
tnext = min(cron1(now), cron2(now), cron3(now)) # Seconds until 1st event
115117
```
116118

117-
##### [Top](./SCHEDULE.md#1-scheduling-tasks)
119+
##### [Top](./SCHEDULE.md#0-contents)
118120

119121
## 4.3 How it works
120122

@@ -166,7 +168,7 @@ my_cron(month=(2, 7, 10), hrs=1, mins=59) # moves forward 1 day
166168
t_wait = my_cron(time.time()) # but month may be disallowed
167169
```
168170

169-
##### [Top](./SCHEDULE.md#1-scheduling-tasks)
171+
##### [Top](./SCHEDULE.md#0-contents)
170172

171173
## 4.5 Limitations
172174

@@ -205,7 +207,7 @@ adapt `cron.py` to account for this: its design focus is small lightweight code
205207
to run on bare metal targets. I could adapt `crontest.py` but it would surely
206208
fail in other countries.
207209

208-
##### [Top](./SCHEDULE.md#1-scheduling-tasks)
210+
##### [Top](./SCHEDULE.md#0-contents)
209211

210212
# 5. The schedule function
211213

@@ -263,7 +265,7 @@ finally:
263265
_ = asyncio.new_event_loop()
264266
```
265267

266-
##### [Top](./SCHEDULE.md#1-scheduling-tasks)
268+
##### [Top](./SCHEDULE.md#0-contents)
267269

268270
# 6. Use in synchronous code
269271

@@ -325,7 +327,7 @@ is also more versatile because the advanced features of `uasyncio` are
325327
available to the application. The above code is incompatible with `uasyncio`
326328
because of the blocking calls to `time.sleep`.
327329

328-
##### [Top](./SCHEDULE.md#1-scheduling-tasks)
330+
##### [Top](./SCHEDULE.md#0-contents)
329331

330332
# 7. Hardware timing limitations
331333

@@ -342,4 +344,4 @@ Boards with internet connectivity can periodically synchronise to an NTP server
342344
but this carries a risk of sudden jumps in the system time which may disrupt
343345
`uasyncio` and the scheduler.
344346

345-
##### [Top](./SCHEDULE.md#1-scheduling-tasks)
347+
##### [Top](./SCHEDULE.md#0-contents)

0 commit comments

Comments
 (0)