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 name: E2E
on: on: [push, pull_request]
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
jobs: jobs:
Cypress: Cypress:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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>

View File

@ -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"

View File

@ -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 />