You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A story in Chronos is a collection of articles that should be read in a specific order. The idea is to add a new key in the article header:
..story: my-first-story..
then adding a new stories.yml in each articles directory (for each language), with the following format:
- id: my-first-storyname: My First Storydescription: See how cool is my first storychapters:
- name: my-first-article-file-nameorder: 0showsInIndex: true
- name: my-second-article-file-nameorder: 1showsInIndex: false
The showsInIndex key will be used by Chronos to avoid listing articles that must only show in the story.
Chronos then will use that to provide one new key in each article response:
{
"Story": {
"Id": "my-first-story",
"Name": "My FIrst Story",
"Description": "See how cool is my first story",
"Previous": "",
"Next": "my-second-article-slug"
}
}
the client can then use this information to manage navigation between story chapters.
There will be also a new :repoId:/stories endpoint to return all the stories in the collection.
The text was updated successfully, but these errors were encountered:
A story in Chronos is a collection of articles that should be read in a specific order. The idea is to add a new key in the article header:
then adding a new
stories.yml
in each articles directory (for each language), with the following format:Chronos then will use that to provide one new key in each article response:
the client can then use this information to manage navigation between story chapters.
There will be also a new
:repoId:/stories
endpoint to return all the stories in the collection.The text was updated successfully, but these errors were encountered: