Skip to content

[fix][site] turn on all related code highlight - #187

Merged
urfreespace merged 4 commits into
apache:mainfrom
tisonkun:highlight
Aug 31, 2022
Merged

urfreespace merged 4 commits into
apache:mainfrom
tisonkun:highlight

Conversation

@tisonkun

@tisonkun tisonkun commented Aug 30, 2022 •

Copy link
Copy Markdown
Member

This closes apache/pulsar#17307.

All changes to the docs folder should be carried to the main repo also. See apache/pulsar#17342.

cc @urfreespace @dave2wave

Runs find docs -type f | xargs grep -h '^```' | sort | uniq under site2/website-next gives:

```                    -- as is
```$xslt               -- to text
````                   -- as is
````mdx-code-block     -- as is
```access transformers -- to xml
```bash                -- as is
```c#                  -- to csharp, add csharp in config
```c++                 -- to cpp
```conf                -- to properties, some of them are ini, add ini
```cpp                 -- as is
```go                  -- as is
```groovy              -- as is, add groovy in config
```http                -- as is, add http in config
```java                -- as is
```javascript          -- as is
```json                -- as is
```nodejs              -- to javascript
```powershell          -- as is, add powershell
```properties          -- as is, add properties
```protobuf            -- as is, add protobuf
```python              -- as is
```shell               -- as is
```shell script        -- to shell
```text                -- as is
```xml                 -- as is
```yaml                -- as is

... and I handled them one by one.

@dave2wave dave2wave left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@urfreespace can answer definitively, but I think that this PR needs to be made in https://github.com/apache/pulsar/tree/master/site2/docs which is synchronized to this repository. (README.md files in these directories would help.)

Comment thread site2/website-next/docusaurus.config.js Resolved
@dave2wave
dave2wave self-requested a review August 30, 2022 02:22
Signed-off-by: tison <[email protected]>
@tisonkun

Copy link
Copy Markdown
Member Author

cc @Anonymitaet

@urfreespace

Copy link
Copy Markdown
Member

@urfreespace can answer definitively, but I think that this PR needs to be made in https://github.com/apache/pulsar/tree/master/site2/docs which is synchronized to this repository. (README.md files in these directories would help.)

yes, I think @tisonkun had it done with this PR apache/pulsar#17342

@urfreespace
urfreespace merged commit e4bd2a4 into apache:main Aug 31, 2022
@tisonkun
tisonkun deleted the highlight branch August 31, 2022 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Turn on syntax highlight for all related programming languages

3 participants