mirror of https://github.com/apache/superset.git
fix: 📜 `/docs/api` won't render (#11168)
* fix: docs/api won't render fix: docs/api won't render It's unclear to me exactly why, but docz is flimsy with the way things are named and runs into odd collision and error messages. Somehow renaming the route seem to help. Jut rolling with it after many `gatsby clean` * kill paths-ignore on github-actions * trigger
This commit is contained in:
parent
c8a5dec84d
commit
071c81f82e
|
@ -1,12 +1,6 @@
|
||||||
name: E2E
|
name: E2E
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
pull_request:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Cypress:
|
Cypress:
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
name: Frontend
|
name: Frontend
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
pull_request:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
# Python unit tests
|
# Python unit tests
|
||||||
name: Python
|
name: Python
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
pull_request:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
name: Hive
|
name: Hive
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
pull_request:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-postgres-hive:
|
test-postgres-hive:
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
name: Presto
|
name: Presto
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
pull_request:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-postgres-presto:
|
test-postgres-presto:
|
||||||
|
|
|
@ -52,7 +52,7 @@ const HeaderNav = () => {
|
||||||
<div css={anchorNavStyle}>
|
<div css={anchorNavStyle}>
|
||||||
<Anchor>
|
<Anchor>
|
||||||
{headings.map((e) => (
|
{headings.map((e) => (
|
||||||
<Link href={`#${e.slug}`} title={e.value} />
|
<Link key={e.slug} href={`#${e.slug}`} title={e.value} />
|
||||||
))}
|
))}
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -133,9 +133,9 @@ export default class MainMenu extends React.Component {
|
||||||
const { visible } = this.state;
|
const { visible } = this.state;
|
||||||
return (
|
return (
|
||||||
<Layout.Header css={headerStyle}>
|
<Layout.Header css={headerStyle}>
|
||||||
<Link to="https://superset.incubator.apache.org">
|
<a href="https://superset.incubator.apache.org">
|
||||||
<img height="50" css={logoStyle} src={logoSvg} alt="logo" />
|
<img height="50" css={logoStyle} src={logoSvg} alt="logo" />
|
||||||
</Link>
|
</a>
|
||||||
<MenuItems toggleDrawer={this.toggleDrawer} mode="horizontal" />
|
<MenuItems toggleDrawer={this.toggleDrawer} mode="horizontal" />
|
||||||
<Drawer
|
<Drawer
|
||||||
title="Menu"
|
title="Menu"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
name: API
|
name: API
|
||||||
title: API
|
title: API
|
||||||
route: /docs/api
|
route: /docs/rest-api
|
||||||
---
|
---
|
||||||
## API
|
## API
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ documented here. The docs bellow are generated using
|
||||||
[Swagger React UI](https://www.npmjs.com/package/swagger-ui-react).
|
[Swagger React UI](https://www.npmjs.com/package/swagger-ui-react).
|
||||||
|
|
||||||
<Alert
|
<Alert
|
||||||
|
type="info"
|
||||||
message={
|
message={
|
||||||
<div>
|
<div>
|
||||||
<strong>NOTE! </strong>
|
<strong>NOTE! </strong>
|
||||||
|
@ -25,7 +26,6 @@ documented here. The docs bellow are generated using
|
||||||
at <strong>/swagger/v1</strong> (if enabled)
|
at <strong>/swagger/v1</strong> (if enabled)
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
type="info"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<br /><br /><hr />
|
<br /><br /><hr />
|
||||||
|
|
Loading…
Reference in New Issue