diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index ef17bf5..c84a6ac 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -53,21 +53,18 @@ 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: `./${f}` })) + items: files.map((f) => ({ text: formatFilename(f), link: `./${v}/${f}` })) }, versions ] - - continue } - const v = version.text.replace('(latest)', '').trim() - const files = listChildFiles(path.resolve('docs', dir, v)) sidebar[`/${dir}/${v}/`] = [ { @@ -76,6 +73,14 @@ function getFwSidebar() { }, versions ] + + sidebar[`/${dir}/${v}`] = [ + { + ...base, + items: files.map((f) => ({ text: formatFilename(f), link: `../${f}` })) + }, + versions + ] } return sidebar diff --git a/docs/rage-fw/0.3.0/index.md b/docs/rage-fw/0.3.0/index.md index 40f3647..b264e4d 100644 --- a/docs/rage-fw/0.3.0/index.md +++ b/docs/rage-fw/0.3.0/index.md @@ -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) + +
> _RageFW - because in the world of GTA:RP, nobody has time for type errors_