mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 02:25:20 +00:00
[doc] Minor website fixes (#5343)
* [doc] Fix level 2 header on cutomization.md * [doc] Specify https on API/online link * [docs] Invert github/twitter links in dark mode * [doc] Pin version for alpha release artifacts
This commit is contained in:
parent
527c118210
commit
32b9b399fd
@ -3,10 +3,9 @@ id: customization
|
||||
title: Customization
|
||||
---
|
||||
|
||||
<a id="creating-a-new-template"></a>
|
||||
## Custom Generator (and Template)
|
||||
|
||||
If none of the built-in generators suit your needs and you need to do more than just modify the mustache templates to tweak generated code, you can create a brand new generator and its associated templates. OpenAPI Generator can help with this, using the `meta` command:
|
||||
|
||||
<a id="creating-a-new-template"></a> If none of the built-in generators suit your needs and you need to do more than just modify the mustache templates to tweak generated code, you can create a brand new generator and its associated templates. OpenAPI Generator can help with this, using the `meta` command:
|
||||
|
||||
```sh
|
||||
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar meta \
|
||||
|
@ -52,7 +52,7 @@ const docusaurusConfig = {
|
||||
{to: "docs/faq", label: "FAQ" },
|
||||
{to: "team", label: "Team" },
|
||||
{to: "blog", label: 'Blog'},
|
||||
{to: 'http://api.openapi-generator.tech', label: 'API'},
|
||||
{to: 'https://api.openapi-generator.tech', label: 'API'},
|
||||
],
|
||||
},
|
||||
|
||||
|
@ -12,9 +12,10 @@
|
||||
},
|
||||
"devDependencies": {},
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "^2.0.0-alpha.40",
|
||||
"@docusaurus/core": "2.0.0-alpha.40",
|
||||
"@docusaurus/plugin-google-analytics": "^2.0.0-alpha.37",
|
||||
"@docusaurus/preset-classic": "^2.0.0-alpha.40",
|
||||
"@docusaurus/preset-classic": "2.0.0-alpha.40",
|
||||
"@docusaurus/utils": "2.0.0-alpha.40",
|
||||
"classnames": "^2.2.6",
|
||||
"js-yaml": "^3.12.0",
|
||||
"lodash.merge": "^4.6.2",
|
||||
|
@ -117,6 +117,10 @@ html[data-theme='dark'] .featureImage {
|
||||
filter: invert(.9);
|
||||
}
|
||||
|
||||
html[data-theme='dark'] .mediaLink {
|
||||
filter: invert(1.0);
|
||||
}
|
||||
|
||||
.indexCtasGitHubButtonWrapper {
|
||||
display: flex;
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ import React from 'react';
|
||||
import Layout from '@theme/Layout';
|
||||
import useBaseUrl from '@docusaurus/useBaseUrl';
|
||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||
import styles from './styles.module.css';
|
||||
|
||||
// This is based mostly off of Babel's website configuration for Members/orgs/etc.
|
||||
function MediaLink(props) {
|
||||
@ -14,6 +15,7 @@ function MediaLink(props) {
|
||||
width={props.size}
|
||||
src={props.iconSource}
|
||||
alt={props.iconAlt}
|
||||
className={styles.mediaLink}
|
||||
/>
|
||||
<a href={props.url} target="_blank" rel="noreferrer noopener">
|
||||
<span className="anchor_text">{props.text}</span>
|
||||
|
@ -852,7 +852,7 @@
|
||||
resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
|
||||
integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==
|
||||
|
||||
"@docusaurus/core@^2.0.0-alpha.40":
|
||||
"@docusaurus/core@2.0.0-alpha.40":
|
||||
version "2.0.0-alpha.40"
|
||||
resolved "https://registry.yarnpkg.com/@docusaurus/core/-/core-2.0.0-alpha.40.tgz#cefc79156b89316317aee289fc68547b1d0ced04"
|
||||
integrity sha512-3mVw7vXm6Ad53+1qKvYD3EzULC/JyWH8dUlysLzbsWx3M6+ZJ4NNdNTtLM4Uuug8OdnbhIJL244O4wSeRT5U3Q==
|
||||
@ -990,7 +990,7 @@
|
||||
"@docusaurus/types" "^2.0.0-alpha.40"
|
||||
sitemap "^3.2.2"
|
||||
|
||||
"@docusaurus/preset-classic@^2.0.0-alpha.40":
|
||||
"@docusaurus/preset-classic@2.0.0-alpha.40":
|
||||
version "2.0.0-alpha.40"
|
||||
resolved "https://registry.yarnpkg.com/@docusaurus/preset-classic/-/preset-classic-2.0.0-alpha.40.tgz#7b45eb699c8512a3601c9dd2707b1c283edd8d6a"
|
||||
integrity sha512-CALOb3aB1WR9JbK6ogMosy4ReZnkvtfCOJy49ibQqdVcJnmI46CbBscjHgbNph87tY9U/uzRb32XlP7mcScmng==
|
||||
@ -1035,7 +1035,7 @@
|
||||
commander "^4.0.1"
|
||||
querystring "0.2.0"
|
||||
|
||||
"@docusaurus/utils@^2.0.0-alpha.40":
|
||||
"@docusaurus/utils@2.0.0-alpha.40", "@docusaurus/utils@^2.0.0-alpha.40":
|
||||
version "2.0.0-alpha.40"
|
||||
resolved "https://registry.yarnpkg.com/@docusaurus/utils/-/utils-2.0.0-alpha.40.tgz#fbbde31886ea1076a8d14e2133f07a6d35cf158e"
|
||||
integrity sha512-MR1nD3o23PuyWuSX0n+bGXlGfWt08w1xrVDRb+J4M3LrOflSlgI2RaT2p3J7V/czNWcvfCjhknVNXqpVTViw6A==
|
||||
|
Loading…
Reference in New Issue
Block a user