Skip to content

Commit

Permalink
[website] fix sidebar (apache#2241)
Browse files Browse the repository at this point in the history
### Motivation

In apache#2237, `administration-auth` is removed. However it is not removed from sidebard. It is causing failures on building website.

```
generate.js triggered...
Error: Improper sidebars.json file, document with id 'administration-auth' not found. Make sure that documents with the ids specified in sidebars.json exist and that no ids are repeated.
    at _loop (/pulsar/site2/website/node_modules/docusaurus/lib/server/readCategories.js:58:17)
    at readCategories (/pulsar/site2/website/node_modules/docusaurus/lib/server/readCategories.js:34:53)
    at DocsSidebar.render (/pulsar/site2/website/node_modules/docusaurus/lib/core/DocsSidebar.js:16:26)
    at processChild (/pulsar/site2/website/node_modules/react-dom/cjs/react-dom-server.node.development.js:2204:18)
    at resolve (/pulsar/site2/website/node_modules/react-dom/cjs/react-dom-server.node.development.js:2061:5)
    at ReactDOMServerRenderer.render (/pulsar/site2/website/node_modules/react-dom/cjs/react-dom-server.node.development.js:2380:22)
    at ReactDOMServerRenderer.read (/pulsar/site2/website/node_modules/react-dom/cjs/react-dom-server.node.development.js:2354:19)
    at renderToStaticMarkup (/pulsar/site2/website/node_modules/react-dom/cjs/react-dom-server.node.development.js:2737:25)
    at renderToStaticMarkupWithDoctype (/pulsar/site2/website/node_modules/docusaurus/lib/server/renderUtils.js:16:30)
    at /pulsar/site2/website/node_modules/docusaurus/lib/server/generate.js:199:17
```

 ### Changes

Remove `administration-auth` from the sidebar. Also remove codebase page, which doesn't make sense to be there because code changes are happening very frequently. The page quickly becomes out-of-dated.
Additionally cleanup a few things in the sidebar.
  • Loading branch information
sijie authored Jul 26, 2018
1 parent 4fcbe5e commit c1c1f90
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion site2/docs/adaptors-kafka.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: adaptors-kafka
title: Pulsar adaptor for Apache Kafka
sidebar_label: Kafka client wrappter
sidebar_label: Kafka client wrapper
---


Expand Down
2 changes: 1 addition & 1 deletion site2/docs/client-libraries-websocket.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: client-libraries-websocket
title: Pulsar's WebSocket API
sidebar_label: WebSocket API
sidebar_label: WebSocket
---

Pulsar's [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API) API is meant to provide a simple way to interact with Pulsar using languages that do not have an official [client library](getting-started-clients.md). Through WebSockets you can publish and consume messages and use all the features available in the [Java](client-libraries-java.md), [Python](client-libraries-python.md), and [C++](client-libraries-cpp.md) client libraries.
Expand Down
2 changes: 1 addition & 1 deletion site2/docs/cookbooks-deduplication.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: cookbooks-deduplication
title: Message deduplication
sidebar_label: Managing message deduplication
sidebar_label: Message deduplication
---

**Message deduplication** is a feature of Pulsar that, when enabled, ensures that each message produced on Pulsar topics is persisted to disk *only once*, even if the message is produced more than once. Message deduplication essentially unburdens Pulsar applications of the responsibility of ensuring deduplication and instead handles it automatically on the server side.
Expand Down
10 changes: 0 additions & 10 deletions site2/docs/developing-codebase.md

This file was deleted.

3 changes: 1 addition & 2 deletions site2/website/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@
"Pulsar administration": [
"administration-zk-bk",
"administration-geo",
"administration-auth",
"administration-dashboard",
"administration-stats",
"administration-load-distribution",
"administration-proxy"
],
"Security": [
"security-overview",
"security-tls",
"security-athenz",
"security-authorization",
"security-tls",
"security-encryption",
"security-extending"
],
Expand Down

0 comments on commit c1c1f90

Please sign in to comment.