sidebars fix
This commit is contained in:
parent
6ae665ee64
commit
53e09a9613
@ -53,10 +53,20 @@ function getFwSidebar() {
|
||||
}
|
||||
|
||||
for (const version of versions.items) {
|
||||
if (version.text.includes('latest')) {
|
||||
const files = listChildFiles(path.resolve('docs', dir))
|
||||
const v = version.text.replace('(latest)', '').trim()
|
||||
const files = listChildFiles(path.resolve('docs', dir, v))
|
||||
|
||||
if (version.text.includes('latest')) {
|
||||
sidebar[`/${dir}/`] = [
|
||||
{
|
||||
...base,
|
||||
items: files.map((f) => ({ text: formatFilename(f), link: `./${v}/${f}` }))
|
||||
},
|
||||
versions
|
||||
]
|
||||
}
|
||||
|
||||
sidebar[`/${dir}/${v}/`] = [
|
||||
{
|
||||
...base,
|
||||
items: files.map((f) => ({ text: formatFilename(f), link: `./${f}` }))
|
||||
@ -64,15 +74,10 @@ function getFwSidebar() {
|
||||
versions
|
||||
]
|
||||
|
||||
continue
|
||||
}
|
||||
const v = version.text.replace('(latest)', '').trim()
|
||||
const files = listChildFiles(path.resolve('docs', dir, v))
|
||||
|
||||
sidebar[`/${dir}/${v}/`] = [
|
||||
sidebar[`/${dir}/${v}`] = [
|
||||
{
|
||||
...base,
|
||||
items: files.map((f) => ({ text: formatFilename(f), link: `./${f}` }))
|
||||
items: files.map((f) => ({ text: formatFilename(f), link: `../${f}` }))
|
||||
},
|
||||
versions
|
||||
]
|
||||
|
@ -46,7 +46,7 @@ These are setup as-should if you are using our CLI, if you still want to setup y
|
||||
|
||||
## Contributing
|
||||
|
||||
Join our community of developers and contribute to the ongoing development of RageFW. At the moment the only way to contribute is opening issues
|
||||
Join our community of developers and contribute to the ongoing development of RageFW. At the moment the only way to contribute is opening [issues](https://git.entityseven.com/entityseven/rage-framework/issues)
|
||||
|
||||
## Support
|
||||
|
||||
@ -54,6 +54,8 @@ Need help? Reach out via our community forums or contact us directly through our
|
||||
|
||||
## License
|
||||
|
||||
Licensed under **Custom Attribution-NoDerives Software License**
|
||||
[Licensed under **Custom Attribution-NoDerives Software License**](https://git.entityseven.com/entityseven/rage-framework/src/branch/master/LICENSE)
|
||||
|
||||
<br/>
|
||||
|
||||
> _RageFW - because in the world of GTA:RP, nobody has time for type errors_
|
||||
|
Loading…
Reference in New Issue
Block a user