Skip to content

Commit

Permalink
Merge pull request #370 from OpenFn/split-versions
Browse files Browse the repository at this point in the history
split docs for legacy and next
  • Loading branch information
taylordowns2000 authored Nov 1, 2023
2 parents e31d4c9 + e1ca398 commit dc87507
Show file tree
Hide file tree
Showing 62 changed files with 10,448 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/build/lightning-quick-start.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Lightning Quick-Start (v2)
title: Quick-Start
---

This tutorial takes ~15 minutes to complete, and teaches you how to build
Expand Down
2 changes: 1 addition & 1 deletion docs/instant-openhie.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ These two methods are detailed below:
[hapifhir]: https://hapifhir.io/
[commcare]: https://www.commcarehq.org/
[kobo]: https://www.kobotoolbox.org/
[projects]: /documentation/build/example-build/
[projects]: /documentation/build/lightning-quick-start/
[projectyaml]: https://github.com/OpenFn/microservice/blob/main/project.yaml.example
[triggers]: /documentation/build/triggers/
[commcaresample]: https://github.com/OpenFn/instant-demo/blob/main/fixtures/commcare_sample.json
Expand Down
15 changes: 15 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ module.exports = {
type: 'localeDropdown',
position: 'right',
},
{
type: 'docsVersionDropdown',
position: 'right',
},
{
href: 'https://github.com/openfn/docs',
position: 'right',
Expand Down Expand Up @@ -139,6 +143,17 @@ module.exports = {
sidebarPath: require.resolve('./sidebars-main.js'),
routeBasePath: '/documentation',
editUrl: 'https://github.com/openfn/docs/edit/main',
lastVersion: 'legacy',
versions: {
current: {
banner: 'unreleased',
label: "Lightning 🚧"
},
'legacy': {
banner: 'none',
label: "Platform (v1)"
},
},
},
blog: {
showReadingTime: true,
Expand Down
1 change: 0 additions & 1 deletion sidebars-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module.exports = {
type: 'category',
label: 'Getting Started',
items: [
'build/example-build',
'build/lightning-quick-start',
'getting-started/terminology',
'getting-started/implementation-checklist',
Expand Down
1 change: 1 addition & 0 deletions versioned_docs/version-legacy/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.openfn.org
Loading

0 comments on commit dc87507

Please sign in to comment.