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:
Maxime Beauchemin 2020-10-06 13:51:40 -07:00 committed by GitHub
parent c8a5dec84d
commit 071c81f82e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 40 deletions

View File

@ -1,12 +1,6 @@
name: E2E
on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
on: [push, pull_request]
jobs:
Cypress:

View File

@ -1,12 +1,6 @@
name: Frontend
on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
on: [push, pull_request]
jobs:
build:

View File

@ -1,13 +1,7 @@
# Python unit tests
name: Python
on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
on: [push, pull_request]
jobs:
lint:

View File

@ -1,12 +1,6 @@
name: Hive
on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
on: [push, pull_request]
jobs:
test-postgres-hive:

View File

@ -1,12 +1,6 @@
name: Presto
on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
on: [push, pull_request]
jobs:
test-postgres-presto:

View File

@ -52,7 +52,7 @@ const HeaderNav = () => {
<div css={anchorNavStyle}>
<Anchor>
{headings.map((e) => (
<Link href={`#${e.slug}`} title={e.value} />
<Link key={e.slug} href={`#${e.slug}`} title={e.value} />
))}
</Anchor>
</div>

View File

@ -133,9 +133,9 @@ export default class MainMenu extends React.Component {
const { visible } = this.state;
return (
<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" />
</Link>
</a>
<MenuItems toggleDrawer={this.toggleDrawer} mode="horizontal" />
<Drawer
title="Menu"

View File

@ -1,7 +1,7 @@
---
name: API
title: API
route: /docs/api
route: /docs/rest-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).
<Alert
type="info"
message={
<div>
<strong>NOTE! </strong>
@ -25,7 +26,6 @@ documented here. The docs bellow are generated using
at <strong>/swagger/v1</strong> (if enabled)
</div>
}
type="info"
/>
<br /><br /><hr />