A guide with various topics in logistics and supply-chain, including a section on the U.S Truckload market.
You can access the guide here: The Ultimate Logistics Guide .
The guide is brought to you by Chaine, a social, collaborative logistics platform that makes it easy for freight brokers and truck carriers to work together.
PRs and contributions are welcome.
This website is built using Docusaurus 2, a modern static website generator.
$ yarn
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
- All docs are in the
docsdirectory. - Any custom components go in the
srcdirectory. - The top nav bar is configured in
docusaurus.config.js. See official docs
See official docs
The sidebar for the different pages is configured in sidebars.js and then referenced in docusaurus.config.js in the themeConfig, under navbar.items. For sidebars configured in sidebars.js, they are referenced by setting items.type:'docSidebar', sidebarId: 'api'. For example, see this setup:
// sidebars.js
const sidebars = {
// ...
api: [
{
type: 'category',
label: 'Getting Started',
link: {
type: 'generated-index'
},
collapsed: false,
items: ['api/truckload-visibility', 'api/ocean-visibility']
},
{
type: 'autogenerated',
dirName: 'api/docs'
}
// ...
]
}// docusaurus.config.js
const config = {
//...
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
//...
items: [
{
type: 'docSidebar',
sidebarId: 'api',
position: 'left',
label: 'API Docs'
}
//...
]
})
}You can create doc cards for a section, for example:
You can do this in a few ways.
- Autogenerated: add a sidebar item for a section, and put
type: 'autogenerated'. For example, see below
// sidebars.js
const sidebars = {
// ...
api: [
{
type: 'category',
label: 'Getting Started',
link: {
type: 'generated-index'
},
collapsed: false,
items: ['api/truckload-visibility', 'api/ocean-visibility']
},
{
type: 'autogenerated',
dirName: 'api/docs'
}
// ...
]
}- Custom generated and list the items
// sidebars.js
const sidebars = {
// ...
api: [
{
type: 'category',
label: 'Getting Started',
link: {
type: 'generated-index'
},
collapsed: false,
items: ['api/truckload-visibility', 'api/ocean-visibility']
}
// ...
]
}- You can also do both auto-generated and custom in sidebars.js:
// sidebars.js
const sidebars = {
// ...
api: [
{
type: 'category',
label: 'Getting Started',
link: {
type: 'generated-index'
},
collapsed: false,
items: ['api/truckload-visibility', 'api/ocean-visibility']
}
// ...
]
}- For a section (i.e. docs/logistics-guide/truckload-market), you can generate an index in the
_category_.jsonusing thelinkproperty like this:
{
"label": "Truckload market",
"position": 1,
"link": {
"type": "generated-index",
"title": "U.S. Truckload Market Guide"
}
}- You can also create custom cards using the DocCard component in a mdx file:
import DocCard from '@theme/DocCard'
<DocCard
item={{type: 'link', label: 'Ocean Visibility API', href: '/docs/api/docs/ocean-visibility/register-tracking'}}
/>- You can use the DocCardList component in mdx file:
import DocCardList from '@theme/DocCardList'
# Getting Started
<DocCardList
items={[
{
type: 'link',
href: '/docs/knowledge-base/truckload-visibility/register-tracking'
},
{
type: 'link',
href: '/docs/knowledge-base/logistics'
}
]}
/>MIT © Chaine
