Skip to content

Commit

Permalink
Prepare release v2.0.0 (#658)
Browse files Browse the repository at this point in the history
* prepare release v2.0.0

* update docs

* update compatibility matrix

* Update announcement banner

* Cherry-pick markdown generator changes #567 from v1

---------

Co-authored-by: Bryan <[email protected]>
  • Loading branch information
sserrata and Bryan authored Nov 13, 2023
1 parent a5111bf commit ec57fe9
Show file tree
Hide file tree
Showing 14 changed files with 350 additions and 245 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 2.0.0 (Nov 13, 2023)

High level enhancements

- First v2.0.0 stable release!

> Currently only compatible with Docusaurus v2.4.1 -> v2.4.3
Other enhancements and bug fixes

- upgrade to react 18 and demo docusaurus to 2.4.3 ([#656](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/656))
- allow upgrade to react 18 ([#651](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/651))
- stop docusaurus support at v2.4.0 ([#650](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/650))

## 2.0.0-beta.5 (Oct 23, 2023)

High level enhancements
Expand Down
136 changes: 75 additions & 61 deletions README.md

Large diffs are not rendered by default.

50 changes: 30 additions & 20 deletions demo/docs/customization/languagetabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ description: Configuring language tabs for the API Demo Panel.

The Docusaurus OpenAPI docs plugin comes with support for 8 languages which you can render as code snippets on an API operation page. The languages currently supported are:

| Language | Prism Highlighter | Variants |
| -------- | ----------------- | ------------------------------------------------ |
| `curl` | bash | `curl`\* |
| `python` | python | `requests`\*, `http.client` |
| `go` | go | `native`\* |
| `nodejs` | javascript | `axios`\*, `native`, `requests`, `unirest` |
| `ruby` | ruby | `net::http`\* |
| `csharp` | csharp | `restsharp`\*, `httpclient` |
| `php` | php | `curl`\*, `guzzle`, `pecl_http`, `http_request2` |
| `java` | java | `okhttp`\*, `unirest` |
| Language | Prism Highlighter | Variants |
| ------------ | ----------------- | ------------------------------------------------ |
| `curl` | bash | `curl`\* |
| `python` | python | `requests`\*, `http.client` |
| `go` | go | `native`\* |
| `nodejs` | javascript | `axios`\*, `native`, `requests`, `unirest` |
| `ruby` | ruby | `net::http`\* |
| `csharp` | csharp | `restsharp`\*, `httpclient` |
| `php` | php | `curl`\*, `guzzle`, `pecl_http`, `http_request2` |
| `java` | java | `okhttp`\*, `unirest` |
| `powershell` | powershell | `RestMethod`\* |

\* Default variant

Expand Down Expand Up @@ -60,6 +61,7 @@ The demo site disables the `ruby` and `php` languages using the following `langu
highlight: "python",
language: "python",
logoClass: "python",
variant: "requests",
},
{
highlight: "go",
Expand All @@ -70,26 +72,34 @@ The demo site disables the `ruby` and `php` languages using the following `langu
highlight: "javascript",
language: "nodejs",
logoClass: "nodejs",
variant: "axios",
},
{
highlight: "ruby",
language: "ruby",
logoClass: "ruby",
},
// {
// highlight: "ruby",
// language: "ruby",
// logoClass: "ruby",
// },
{
highlight: "csharp",
language: "csharp",
logoClass: "csharp",
variant: "httpclient",
},
{
highlight: "php",
language: "php",
logoClass: "php",
},
// {
// highlight: "php",
// language: "php",
// logoClass: "php",
// },
{
highlight: "java",
language: "java",
logoClass: "java",
variant: "unirest",
},
{
highlight: "powershell",
language: "powershell",
logoClass: "powershell",
},
],
```
54 changes: 27 additions & 27 deletions demo/docs/customization/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,54 +19,54 @@ The demo site uses the following CSS to add coloured labels to each request incl
```css
/* API Menu Items */
.api-method > .menu__link {
  align-items: center;
  justify-content: start;
align-items: center;
justify-content: start;
}

.api-method > .menu__link::before {
  width: 50px;
  height: 20px;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 0.25rem;
  border: 1px solid;
  margin-right: var(--ifm-spacing-horizontal);
  text-align: center;
  flex-shrink: 0;
  border-color: transparent;
  color: white;
width: 50px;
height: 20px;
font-size: 12px;
line-height: 20px;
text-transform: uppercase;
font-weight: 600;
border-radius: 0.25rem;
border: 1px solid;
margin-right: var(--ifm-spacing-horizontal);
text-align: center;
flex-shrink: 0;
border-color: transparent;
color: white;
}

.get > .menu__link::before {
  content: "get";
  background-color: var(--ifm-color-primary);
content: "get";
background-color: var(--ifm-color-primary);
}

.post > .menu__link::before {
  content: "post";
  background-color: var(--openapi-code-green);
content: "post";
background-color: var(--openapi-code-green);
}

.delete > .menu__link::before {
  content: "del";
  background-color: var(--openapi-code-red);
content: "del";
background-color: var(--openapi-code-red);
}

.put > .menu__link::before {
  content: "put";
  background-color: var(--openapi-code-blue);
content: "put";
background-color: var(--openapi-code-blue);
}

.patch > .menu__link::before {
  content: "patch";
  background-color: var(--openapi-code-orange);
content: "patch";
background-color: var(--openapi-code-orange);
}

.head > .menu__link::before {
  content: "head";
  background-color: var(--ifm-color-secondary-darkest);
content: "head";
background-color: var(--ifm-color-secondary-darkest);
}
```

Expand Down
Loading

0 comments on commit ec57fe9

Please sign in to comment.