mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
feat(v2): docusaurus deploy: ability to configure port in git url (#4545)
* Creating a way to configure the port used on the guthub deploy. * Fixing some mistakes Documenting Adding githubPort documentation on docusaurus.config.js. Addind SSH protocol prefix. ssh:// Using the default protocol port instead of define it on the code. Prettify. * Fixing some mistakes Documenting Adding githubPort documentation on docusaurus.config.js. Addind SSH protocol prefix. ssh:// Using the default protocol port instead of define it on the code. Prettify. * Isolating the logic to generate the url and testing it. * Changing all the names used on tests to something more unserstandable. * Prettify Co-authored-by: Tales Porto <t.andrade-porto@klarna.com>
This commit is contained in:
parent
4efe6824b3
commit
e99bb43823
6 changed files with 132 additions and 8 deletions
|
@ -204,6 +204,18 @@ module.exports = {
|
|||
};
|
||||
```
|
||||
|
||||
### `githubPort` {#githubPort}
|
||||
|
||||
- Type: `string`
|
||||
|
||||
The port of your server. Useful if you are using GitHub Enterprise.
|
||||
|
||||
```js title="docusaurus.config.js"
|
||||
module.exports = {
|
||||
githubPort: '22',
|
||||
};
|
||||
```
|
||||
|
||||
### `themeConfig` {#themeconfig}
|
||||
|
||||
- Type: `Object`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue