Skip to content

Commit

Permalink
fix: 馃摐 /docs/api won't render (apache#11168)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mistercrunch authored and auxten committed Nov 20, 2020
1 parent e94f1b0 commit a86d5d9
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 40 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/superset-e2e.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: E2E

on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
on: [push, pull_request]

jobs:
Cypress:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/superset-frontend.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Frontend

on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
on: [push, pull_request]

jobs:
build:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/superset-python.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/test-hive.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Hive

on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
on: [push, pull_request]

jobs:
test-postgres-hive:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/test-presto.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Presto

on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
on: [push, pull_request]

jobs:
test-postgres-presto:
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/AnchorNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/docs/api.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: API
title: API
route: /docs/api
route: /docs/rest-api
---
## API

Expand All @@ -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>
Expand All @@ -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 />
Expand Down

0 comments on commit a86d5d9

Please sign in to comment.