Skip to content

Commit ed2a345

Browse files
authored
Merge pull request #3518 from Blargian/page_for_luzmo
Docs checks: find floating pages
2 parents 570a2e3 + 184ab04 commit ed2a345

File tree

18 files changed

+394
-471
lines changed

18 files changed

+394
-471
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@ ClickHouse/
6262
# Ignore table of contents files
6363
docs/cloud/reference/release-notes-index.md
6464
docs/whats-new/changelog/index.md
65+
docs/cloud/manage/api/api-reference-index.md

contribute/style-guide.md

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,38 @@
11
# ClickHouse docs style guide
22

3-
In this document, you will find a number of style guidelines for writing documentation.
4-
The rules in this guide are intended to assist in helping us to create a high
5-
quality documentation offering on par with the quality of ClickHouse itself.
3+
In this document, you will find a number of style guidelines for writing ClickHouse
4+
documentation. As documentation is a collective effort, these guidelines are
5+
intended to help all of us ensure quality and consistency across our documentation.
66

77
## YAML front matter
88

9-
Begin every new markdown document with YAML front-matter:
9+
Begin every new Markdown document with YAML front-matter:
1010

1111
```markdown
1212
---
13-
title: Using a clickhouse-local database
14-
sidebar_label: Using clickhouse-local database
13+
title: 'Using a clickhouse-local database'
14+
sidebar_label: 'Using clickhouse-local database'
1515
slug: /chdb/guides/clickhouse-local
16-
description: Learn how to use a clickhouse-local database with chDB
17-
keywords: [chdb, clickhouse-local]
16+
description: 'Learn how to use a clickhouse-local database with chDB'
17+
keywords: ['chdb', 'clickhouse-local']
1818
---
1919
```
2020

21+
### Associated markdown rule or CI check
22+
23+
#### front-matter validation
24+
25+
There is a custom Docusaurus plugin which runs on build that makes the following
26+
checks on front-matter:
27+
28+
- title, description and slug are specified.
29+
- keywords use flow style arrays with single quoted items e.g.
30+
`keywords: ['integrations']`
31+
- single quotes are used for title, description, slug, sidebar_label
32+
- there is an empty line after the YAML frontmatter block
33+
34+
For implementation details see [plugins/frontmatter-validation](https://github.com/ClickHouse/clickhouse-docs/tree/main/plugins/frontmatter-validation)
35+
2136
## Explicit header tags
2237

2338
Due to the way our translation system works, it is necessary to add an explicit
@@ -191,4 +206,12 @@ export function Anchor(props) {
191206
```
192207
- Replace `<span id="some-id"></span>` with `Anchor id="some-id"/>`
193208

209+
### Dangling pages
210+
211+
In order to prevent pages from becoming 'floating' or 'orphaned' it is
212+
necessary that you add a newly created page to `sidebars.js`. We have a [custom
213+
docusaurus plugin](plugins/checkFloatingPages.js) to catch dangling pages.
214+
215+
If there is some specific reason that you need to bypass this check, you can
216+
add an exception to `floating-pages-exceptions.txt` in the plugins directory.
194217

docs/cloud/manage/api/api-reference-index.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ slug: /cloud/manage/api/
44
description: 'Landing page for Cloud API'
55
---
66

7-
| Page | Description |
8-
|----------------------------------------------------------------|----------------------------------|
9-
| [Invitations](/cloud/manage/api/invitations-api-reference) | API reference for invitations. |
10-
| [Keys](/cloud/manage/api/keys-api-reference) | API reference for keys. |
11-
| [Members](/cloud/manage/api/members-api-reference) | API reference for requests. |
12-
| [Organizations](/cloud/manage/api/organizations-api-reference) | API reference for organizations. |
13-
| [Services](/cloud/manage/api/services-api-reference) | API reference for services. |
14-
| [Usage cost](/cloud/manage/api/usageCost-api-reference) | API reference for services. |
7+
<!-- The table on this page is autogenerated by the script at https://github.com/ClickHouse/clickhouse-docs/blob/main/scripts/autogenerate-table-of-contents.sh
8+
if you've spotted an error or want to change something, please edit the YAML
9+
frontmatter of the files themselves.
10+
-->

docs/cloud/manage/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ This section contains reference documentation for Cloud API and contains the fol
1010
|---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
1111
| [Overview](/cloud/manage/api/api-overview)| Provides an overview of rate limits, Terraform Provider, Swagger (OpenAPI) Endpoint and UI and available support. |
1212
| [Managing API Keys](/cloud/manage/openapi) | Learn more about Cloud's API utilizing OpenAPI that allows you to programmatically manage your account and aspects of your services. |
13-
| [API Reference](/cloud/manage/api) | API reference documentation. |
13+
| [API Reference](/cloud/manage/api) | API reference documentation. |

docs/cloud/reference/changelog.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import fast_releases from '@site/static/images/cloud/reference/june-13-fast-rele
2727
import share_queries from '@site/static/images/cloud/reference/may-30-share-queries.png';
2828
import query_endpoints from '@site/static/images/cloud/reference/may-17-query-endpoints.png';
2929

30-
3130
In addition to this ClickHouse Cloud changelog, please see the [Cloud Compatibility](/cloud/reference/cloud-compatibility.md) page.
3231
## March 7, 2025 {#march-7-2025}
3332

@@ -305,7 +304,7 @@ Services are available in GCP `us-central-1` to customers with the **Dedicated**
305304

306305
We recently announced the Private Preview for Compute-Compute Separation for AWS. We're happy to announce that it is now available for GCP and Azure.
307306

308-
Compute-compute separation allows you to designate specific services as read-write or read-only services, allowing you to design the optimal compute configuration for your application to optimize cost and performance. Please [read the docs](/cloud/reference/compute-compute-separation) for more details.
307+
Compute-compute separation allows you to designate specific services as read-write or read-only services, allowing you to design the optimal compute configuration for your application to optimize cost and performance. Please [read the docs](/cloud/reference/warehouses) for more details.
309308

310309
### Self-service MFA recovery codes {#self-service-mfa-recovery-codes}
311310

@@ -357,7 +356,7 @@ Please also check out our [Trust Center](https://trust.clickhouse.com/) for secu
357356

358357
For existing ClickHouse Cloud services, replicas handle both reads and writes, and there is no way to configure a certain replica to handle only one kind of operation. We have an upcoming new feature called Compute-compute separation that allows you to designate specific services as read-write or read-only services, allowing you to design the optimal compute configuration for your application to optimize cost and performance.
359358

360-
Our new compute-compute separation feature enables you to create multiple compute node groups, each with its own endpoint, that are using the same object storage folder, and thus, with the same tables, views, etc. Read more about [Compute-compute separation here](/cloud/reference/compute-compute-separation). Please [contact support](https://clickhouse.com/support/program) if you would like access to this feature in Private Preview.
359+
Our new compute-compute separation feature enables you to create multiple compute node groups, each with its own endpoint, that are using the same object storage folder, and thus, with the same tables, views, etc. Read more about [Compute-compute separation here](/cloud/reference/warehouses). Please [contact support](https://clickhouse.com/support/program) if you would like access to this feature in Private Preview.
361360

362361
<img alt="Example architecture for compute-compute separation"
363362
style={{width: '600px'}}

docs/cloud/reference/compute-compute-separation.md

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

docs/cloud/reference/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This section acts as a reference guide for some of the more technical details of
1414
|-----------------------------------|-----------------------------------------------------------------------------------------------------------|
1515
| [Architecture](/cloud/reference/architecture) | Discusses the architecture of ClickHouse Cloud, including storage, compute, administration, and security. |
1616
| [SharedMergeTree](/cloud/reference/shared-merge-tree) | Explainer on SharedMergeTree, the cloud-native replacement for the ReplicatedMergeTree and analogues. |
17-
| [Warehouses](/cloud/reference/compute-compute-separation) | Explainer on what Warehouses and Compute-Compute separation are in ClickHouse Cloud. |
17+
| [Warehouses](/cloud/reference/warehouses) | Explainer on what Warehouses and Compute-Compute separation are in ClickHouse Cloud. |
1818
| [BYOC (Bring Your Own Cloud)](/cloud/reference/byoc)| Explainer on the Bring Your Own Cloud (BYOC) service available with ClickHouse Cloud. |
1919
| [Changelogs](/cloud/reference/changelogs) | Cloud Changelogs and Release Notes. |
2020
| [Cloud Compatibility](/whats-new/cloud-compatibility) | A guide to what to expect functionally and operationally in ClickHouse Cloud. |

docs/interfaces/native-clients-and-interfaces-index.md

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

docs/whats-new/changelog/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2+
description: 'Changelog for 2025'
3+
note: 'This file is autogenerated by the yarn new-build'
24
slug: /whats-new/changelog/
35
sidebar_position: 2
4-
sidebar_label: 2025
5-
title: 2025 Changelog
6-
note: This file is autogenerated by the yarn new-build
6+
sidebar_label: '2025'
7+
title: '2025 Changelog'
78
---
89

910
### Table of Contents

docusaurus.config.en.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import katex from "rehype-katex";
44
import chHeader from "./plugins/header.js";
55
import fixLinks from "./src/hooks/fixLinks.js";
66
const { customParseFrontMatter } = require('./plugins/frontmatter-validation/customParseFrontMatter');
7+
const checkFloatingPages = require('./plugins/checkFloatingPages');
8+
const frontmatterValidator = require('./plugins/frontmatter-validation/frontmatterValidatorPlugin');
9+
const path = require('path');
710

811
// Helper function to skip over index.md files.
912
function skipIndex(items) {
@@ -317,13 +320,26 @@ const config = {
317320
},
318321
],
319322
chHeader,
320-
'./plugins/frontmatter-validation/frontmatterValidatorPlugin'
323+
[
324+
frontmatterValidator,
325+
{
326+
failBuild: true,
327+
},
328+
],
329+
[
330+
checkFloatingPages,
331+
{
332+
failBuild: true,
333+
exceptionsFile: path.resolve(__dirname, 'plugins/floating-pages-exceptions.txt')
334+
},
335+
]
321336
],
322337
customFields: {
323338
blogSidebarLink: "/docs/knowledgebase", // Used for KB article page
324339
galaxyApiEndpoint:
325340
process.env.NEXT_PUBLIC_GALAXY_API_ENDPOINT || "http://localhost:3000",
326341
},
342+
327343
};
328344

329345
module.exports = config;

0 commit comments

Comments
 (0)