-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Endpoints documentation with helpful details. (#4033)
* Update Endpoints documentation: - Describe how simple endpoints can be access directly via `/__data.json`. - Describe how standalone endpoints can be given file extensions (`.json`). * use more realistic endpoint, add index files, add src/routes prefix * support tables * combine __data.json docs with accept header Co-authored-by: Rich Harris <hello@rich-harris.dev>
- Loading branch information
1 parent
231d0c8
commit 64234fa
Showing
3 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,6 +160,7 @@ | |
.content table { | ||
margin: 0; | ||
margin-bottom: 2em; | ||
max-width: var(--linemax); | ||
} | ||
|
||
.content section { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters