Skip to content

Commit

Permalink
add placeholders and reset script
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRoscigno committed Jun 27, 2023
1 parent cb1adf7 commit 88ae415
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/en/_placeholders/api/_invitations-api-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_label: Invitations
title: Invitations
---

## List all invitations

This file is generated by `clickhouseapi.js` during the build process. If the
content needs changing please edit `clickhouseapi.js`.
9 changes: 9 additions & 0 deletions docs/en/_placeholders/api/_keys-api-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_label: Keys
title: Keys
---

## Get list of all keys

This file is generated by `clickhouseapi.js` during the build process. If the
content needs changing please edit `clickhouseapi.js`.
9 changes: 9 additions & 0 deletions docs/en/_placeholders/api/_members-api-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_label: Members
title: Members
---

## List organization members

This file is generated by `clickhouseapi.js` during the build process. If the
content needs changing please edit `clickhouseapi.js`.
9 changes: 9 additions & 0 deletions docs/en/_placeholders/api/_organizations-api-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_label: Organizations
title: Organizations
---

## Get organization details

This file is generated by `clickhouseapi.js` during the build process. If the
content needs changing please edit `clickhouseapi.js`.
9 changes: 9 additions & 0 deletions docs/en/_placeholders/api/_services-api-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_label: Services
title: Services
---

## List of organization services

This file is generated by `clickhouseapi.js` during the build process. If the
content needs changing please edit `clickhouseapi.js`.
8 changes: 8 additions & 0 deletions docs/en/_placeholders/changelog/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
slug: /en/whats-new/changelog/
sidebar_position: 2
sidebar_label: 2023
title: 2023 Changelog
note: This file is autogenerated by the yarn new-build
---

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"build": "docusaurus build",
"clear": "docusaurus clear",
"clear": "docusaurus clear && bash ./placeholderReset.sh",
"deploy": "docusaurus deploy",
"docusaurus": "docusaurus",
"prep-from-local": "sh -c 'array_root=($npm_package_config_prep_array_root);array_en=($npm_package_config_prep_array_en);for folder in ${array_en[@]}; do cp -r $0/$folder docs/en;echo \"Copied $folder from [$0]\";done;for folder in ${array_root[@]}; do cp -r $0/$folder docs/;echo \"Copied $folder from [$0]\";done;echo \"Prep completed\";'",
Expand Down
13 changes: 13 additions & 0 deletions placeholderReset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#! ./bin/bash
echo "Copying API placeholder files over generated content"
PLACEHOLDER=docs/en/_placeholders
DOCS=docs/en
cp $PLACEHOLDER/api/_invitations-api-reference.md $DOCS/cloud/manage/api/invitations-api-reference.md
cp $PLACEHOLDER/api/_keys-api-reference.md $DOCS/cloud/manage/api/keys-api-reference.md
cp $PLACEHOLDER/api/_members-api-reference.md $DOCS/cloud/manage/api/members-api-reference.md
cp $PLACEHOLDER/api/_organizations-api-reference.md $DOCS/cloud/manage/api/organizations-api-reference.md
cp $PLACEHOLDER/api/_services-api-reference.md $DOCS/cloud/manage/api/services-api-reference.md

cp $PLACEHOLDER/changelog/_index.md $DOCS/whats-new/changelog/index.md
echo "Copying completed"
echo "----END----"

0 comments on commit 88ae415

Please sign in to comment.