you can find the SDKs content in the ./src/snippets/sdks.html
. This file is divided into 2 parts, SECTIONS and SUB SECTIONS as below:
The other items behavior in the navbar is editable from the navbar object in the docusaurus.config.js
file. You can find it in the line 116
You can replace ALGOLIA credentials in the line 213
in the docusaurus.config.js
file.
Replace the postmanUrl with your own Postman Run in Postman button URL in the ./src/components/RunInPostmanButton.tsx
file.
Place your yaml files from stoplight in the ./static/api
folder.
Change the questions and answers in the ./src/faq.yaml
file.
-
How to create those category drop-down and version drop-down for two separate sections?
-
by providing an object like that in the
docs_list.json
, you gonna defined a category with 1 version:{ "id": "first-first-category", "path": "docs/first-first-category", "routeBasePath": "/first-first-category", "lastVersion": "current", "versions": { "current": { "label": "2.2.3" } } }
-
Create a
your_new_docs_title + _versioned_docs
folder (as in first-first-category_versioned_docs) and place your docs in it. all your new docs versions gonna be placed there: check the official documentation -
create a
your_new_docs_title + _versioned_sidebars
file (as in first-first-category_versioned_sidebars) and place your sidebar in it. all your new docs versions gonna be placed there: check the official documentation -
create a file where you gonna defined the list of your versions:
your_new_docs_title + _versions.json
(as in first-first-category_versions.json)
-
-
How to create multiple API pages with different postman collection?
- the API pages are autogenerated from the stoplight yaml files placed in the
./static/api
folder. You can create as many API pages as you want by placing your yaml files in this folder. The API pages are generated in the./src/pages/api
folder. - Different postman collection? It has to be manually done, by creating new pages or by passing new parameters to the URL that gonna defined which postman collection to use. (this is not implemented in the application)!
- the API pages are autogenerated from the stoplight yaml files placed in the
-
How to update top nav items and drop downs?
-
The top nav items are defined in the
docusaurus.config.js
file. You can find it in the line116
-
an example for a simple item is:
{ label: "Guides", to: "guides", position: "left", className: "new-badge", },
-
an example of a dropdown:
{ label: "SDKs", type: "dropdown", className: "my-website-dropdown", items: [ { type: "html", value: sdksHTML, className: "my-website-dropdown", }, ], }
-
-
How do I update the docusaurus template in my own?
- You can find the docusaurus template in the
./src
folder. AllReactjs
pages are rendered from thepages
folder. - You can find the docusaurus components in the
./src/components
folder. - You can update the default docusaurus components in the
./src/theme
folder.
- You can find the docusaurus template in the
-
fiv-1.vercel.app/react-chat-sdk Chat > SDKs > React, So how do we add these per section?
Same as https://fiv-1.vercel.app/first-first-category with https://fiv-1.vercel.app/first-second-category ...
I guess the Chat, SDKs and React, each one gonna has its own versions list, so it's required that each one has its own folder with the versioned docs and versioned sidebars. Means each one with its own path.
-
https://fiv-1.vercel.app/chat/sdk/react (and not https://fiv-1.vercel.app/react-chat-sdk)
- Gonna required too much work, while we can't use the default docusaurus navigation behavior,