Skip to content

Commit 804ee57

Browse files
committed
chore: use gh: proto for fetch examples
1 parent 3ca4924 commit 804ee57

File tree

3 files changed

+7
-31
lines changed

3 files changed

+7
-31
lines changed

docs/2.generators/fetch.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,25 @@
22

33
The `fetch` generator fetches a URL (using [unjs/ofetch](https://ofetch.unjs.io)) and inlines response body.
44

5-
<!-- automd:example generator=fetch url="https://gist.github.com/pi0/c176defbba5568b6d06ea619a75f6104/raw" -->
5+
<!-- automd:example generator=fetch url="gh:unjs/automd/main/test/fixture/TEST.md" -->
66

77
## Example
88

99
### Input
1010

11-
<!-- automd:fetch url=https://gist.github.com/pi0/c176defbba5568b6d06ea619a75f6104/raw -->
11+
<!-- automd:fetch url=gh:unjs/automd/main/test/fixture/TEST.md -->
1212
<!-- /automd -->
1313

1414
### Output
1515

16-
<!-- automd:fetch url=https://gist.github.com/pi0/c176defbba5568b6d06ea619a75f6104/raw -->
16+
<!-- automd:fetch url=gh:unjs/automd/main/test/fixture/TEST.md -->
1717

18-
# The Lazy Coder's Guide to Programming
19-
20-
## Chapter 1: The Art of Copy-Pasting
21-
22-
### Section 1.1: Ctrl+C, Ctrl+V, Repeat
18+
## The Lazy Coder's Guide to Programming
2319

2420
Programming can be hard. But fear not! With the power of copy-paste, you can conquer any coding challenge without breaking a sweat. Just remember: if it works once, it'll work a thousand times. Who needs original code anyway?
2521

26-
## Chapter 2: Debugging 101: Blame the Compiler
27-
28-
### Section 2.1: It's Not You, It's the Computer
29-
3022
When your code doesn't work, don't blame yourself. It's clearly the compiler's fault for not understanding your genius. Remember, the more error messages you get, the closer you are to becoming a programming master.
3123

32-
## Chapter 3: Stack Overflow: The Holy Grail
33-
34-
### Section 3.1: Why Figure It Out Yourself?
35-
3624
Why waste time solving problems when someone else has already done it for you? Stack Overflow is your best friend, your mentor, and your savior. Just make sure to upvote the answers that save your bacon.
3725

3826
<!-- /automd -->

test/fixture/INPUT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
## `fetch`
3434

35-
<!-- automd:fetch url="https://gist.github.com/pi0/c176defbba5568b6d06ea619a75f6104/raw" -->
35+
<!-- automd:fetch url="gh:unjs/automd/main/test/fixture/TEST.md" -->
3636
<!-- /automd -->
3737

3838
## `file`

test/fixture/OUTPUT.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,26 +109,14 @@ _🤖 docs are auto updated with [automd](https:/automd.unjs.io) (last updated:
109109

110110
## `fetch`
111111

112-
<!-- automd:fetch url="https://gist.github.com/pi0/c176defbba5568b6d06ea619a75f6104/raw" -->
112+
<!-- automd:fetch url="gh:unjs/automd/main/test/fixture/TEST.md" -->
113113

114-
# The Lazy Coder's Guide to Programming
115-
116-
## Chapter 1: The Art of Copy-Pasting
117-
118-
### Section 1.1: Ctrl+C, Ctrl+V, Repeat
114+
## The Lazy Coder's Guide to Programming
119115

120116
Programming can be hard. But fear not! With the power of copy-paste, you can conquer any coding challenge without breaking a sweat. Just remember: if it works once, it'll work a thousand times. Who needs original code anyway?
121117

122-
## Chapter 2: Debugging 101: Blame the Compiler
123-
124-
### Section 2.1: It's Not You, It's the Computer
125-
126118
When your code doesn't work, don't blame yourself. It's clearly the compiler's fault for not understanding your genius. Remember, the more error messages you get, the closer you are to becoming a programming master.
127119

128-
## Chapter 3: Stack Overflow: The Holy Grail
129-
130-
### Section 3.1: Why Figure It Out Yourself?
131-
132120
Why waste time solving problems when someone else has already done it for you? Stack Overflow is your best friend, your mentor, and your savior. Just make sure to upvote the answers that save your bacon.
133121

134122
<!-- /automd -->

0 commit comments

Comments
 (0)