Skip to content

Commit

Permalink
sitemap tool (#3158)
Browse files Browse the repository at this point in the history
* _sitemap

* more features

* fixes

* small fixes

* misc improvements

* open in your editor

* eslint

* add a basic headless test

* more feedbacked
  • Loading branch information
peterbe committed Mar 15, 2021
1 parent a7a5bc1 commit a41d5f2
Show file tree
Hide file tree
Showing 6 changed files with 592 additions and 10 deletions.
10 changes: 10 additions & 0 deletions client/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const DocumentEdit = React.lazy(() => import("./document/forms/edit"));
const DocumentCreate = React.lazy(() => import("./document/forms/create"));
const DocumentManage = React.lazy(() => import("./document/forms/manage"));
const WritersHomepage = React.lazy(() => import("./writers-homepage"));
const Sitemap = React.lazy(() => import("./sitemap"));

const isServer = typeof window === "undefined";

Expand Down Expand Up @@ -183,6 +184,15 @@ export function App(appProps) {
</StandardLayout>
}
/>

<Route
path="/_sitemap/*"
element={
<StandardLayout>
<Sitemap />
</StandardLayout>
}
/>
</>
)}
<Route
Expand Down
39 changes: 39 additions & 0 deletions client/src/sitemap/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@import "~@mdn/minimalist/sass/vars/typography";

#sitemap {
min-height: 800px;

div.opening-in-your-editor {
float: right;
font-size: $small-font-size;
}
ul.breadcrumb {
li {
list-style-type: none;
display: inline-block;
margin-right: 5px;

&::after {
content: " /";
}
}
li.last,
li.this-doc {
&::after {
content: "";
}
}

li.this-doc {
margin-left: 20px;
}
}

.tree li.highlight {
background-color: #efefef;
}

.footer-note {
margin-top: 100px;
}
}
Loading

0 comments on commit a41d5f2

Please sign in to comment.