Skip to content

Commit c40939d

Browse files
authored
Prepare versioned docs for main (#294)
2 parents 40145b5 + 8f27f30 commit c40939d

File tree

453 files changed

+51
-34286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

453 files changed

+51
-34286
lines changed

.github/actions/build-artifacts/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ runs:
1919
registry-url: "https://npm.pkg.github.com"
2020
scope: "@public-ui"
2121

22+
- name: Download Docs (2.2)
23+
env:
24+
NODE_AUTH_TOKEN: ${{ inputs.PERSONAL_ACCESS_TOKEN }}
25+
shell: bash
26+
run: |
27+
rm -rf package *.tgz
28+
npm pack @public-ui/docs-v2@latest > /dev/null
29+
tar -xzvf public-ui-docs-*.tgz > /dev/null
30+
31+
rm -rf build/docs/2.2
32+
mkdir -p build/docs/2.2
33+
mv package/build/* build/docs/2.2/
34+
35+
rm -rf package *.tgz
36+
2237
- name: Download designer (v1)
2338
env:
2439
NODE_AUTH_TOKEN: ${{ inputs.PERSONAL_ACCESS_TOKEN }}

docusaurus.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
const { themes } = require('prism-react-renderer');
55

6+
const PUBLIC_BASE_URL = 'https://public-ui.github.io/';
7+
68
/** @type {import('@docusaurus/types').Config} */
79
const config = {
810
title: 'KoliBri - Public UI',
@@ -94,6 +96,18 @@ const config = {
9496
type: 'docsVersionDropdown',
9597
position: 'left',
9698
dropdownActiveClassDisabled: true,
99+
dropdownItemsAfter: [
100+
{
101+
type: 'html',
102+
value: '<hr class="dropdown-separator">',
103+
},
104+
{
105+
type: 'html',
106+
className: 'dropdown-archived-versions',
107+
value: '<b>Archive</b>',
108+
},
109+
{ to: `${PUBLIC_BASE_URL}docs/2.2/`, label: '2.2' },
110+
],
97111
},
98112
{
99113
label: 'Dokumentation',

i18n/en/docusaurus-plugin-content-docs/version-1.5/00-welcome.mdx

Lines changed: 0 additions & 231 deletions
This file was deleted.

i18n/en/docusaurus-plugin-content-docs/version-1.5/01-manifest.mdx

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)