Commit Graph

15863 Commits

Author SHA1 Message Date
Marcus Blättermann
2a5d9a0d01
Fix Juniper component 2022-12-20 23:21:12 +01:00
Marcus Blättermann
0b50883a96
Improve error logging in Juniper 2022-12-20 23:21:12 +01:00
Marcus Blättermann
8153920ed5
Unify code rendering 2022-12-20 23:21:12 +01:00
Marcus Blättermann
9340d69ed8
Fix syntax highlighting for Training Quickstart 2022-12-20 23:21:12 +01:00
Marcus Blättermann
04ec2c0e93
Refactor Quickstart component
The previous implementation was hidding the irrelevant lines via data-props and dynamically generated CSS. This created problems with Next and was also hard to follow. CSS was used to do what React is supposed to handle.

The new implementation simplfy filters the list of children (React elements) via their props.
2022-12-20 23:21:11 +01:00
Marcus Blättermann
4b315d1c4c
Fix missing comment syntax highlighting 2022-12-20 23:21:11 +01:00
Marcus Blättermann
74e8249ca8
Rename custom event
I was googeling for ages to find out what kind of event `inview` is, only to figure out it was a custom event with a name that sounds pretty much like a native one. 🫠
2022-12-20 23:21:11 +01:00
Marcus Blättermann
d6c9a07faa
Fix bug with anchor links after reloading
There was no need for the previous implementation, since the browser handles this nativly. Additional the manual scrolling into view was actually broken, because the heading would disappear behind the menu bar.
2022-12-20 23:21:11 +01:00
Marcus Blättermann
207c9d9e1c
Add manifest.webmanifest 2022-12-20 23:21:11 +01:00
Marcus Blättermann
ae2a27e988
Add PWA support 2022-12-20 23:21:11 +01:00
Marcus Blättermann
f1a8ca380f
Add Smartypants 2022-12-20 23:21:11 +01:00
Marcus Blättermann
667e2848c1
Add sitemap 2022-12-20 23:21:10 +01:00
Marcus Blättermann
55a92f6a78
Store Netlify settings in file
This way we don't need to update via Netlify UI, which can be tricky if changing build settings.
2022-12-20 23:21:10 +01:00
Marcus Blättermann
3cd99b25f7
Add lang="en" 2022-12-20 23:21:10 +01:00
Marcus Blättermann
75ab882bdb
Add _document to be able to customize <html> and <body> 2022-12-20 23:21:10 +01:00
Marcus Blättermann
a280729491
Fix problem with span inside inline code
React doesn't allow a `span` inside an inline `code` element and throws an error in dev mode.
2022-12-20 23:21:10 +01:00
Marcus Blättermann
5e1a10f617
Fix custom table row styling 2022-12-20 23:21:10 +01:00
Marcus Blättermann
8cc4874655
Add plugin to replace strings 2022-12-20 23:21:10 +01:00
Marcus Blättermann
9b17299bd6
Convert file to .mjs to be used by Node process 2022-12-20 23:21:09 +01:00
Marcus Blättermann
1ed59fd680
Fix broken bold markdown 2022-12-20 23:21:09 +01:00
Marcus Blättermann
8dd10e847c
Fix className problem for JSX component 2022-12-20 23:21:09 +01:00
Marcus Blättermann
47ce9ca870
Replace react-helmet with next/head 2022-12-20 23:21:09 +01:00
Marcus Blättermann
de902ca878
Fix internal link recognition
There is a problem with regex between Node and browser, and since Next runs the component on both, this create an error.

`Prop `rel` did not match. Server: "null" Client: "noopener nofollow noreferrer"`

This simplifies the implementation and fixes the above error.
2022-12-20 23:21:09 +01:00
Marcus Blättermann
c0fa92190c
Remove unused prop 2022-12-20 23:21:09 +01:00
Marcus Blättermann
b305510227
Update syntax for code block meta data 2022-12-20 23:21:09 +01:00
Marcus Blättermann
47e4c62741
Fix code syntax highlighting 2022-12-20 23:21:08 +01:00
Marcus Blättermann
46fb76c281
Extract function to own file 2022-12-20 23:21:08 +01:00
Marcus Blättermann
e5c4b18ccc
Remove unused code 2022-12-20 23:21:08 +01:00
Marcus Blättermann
049279657a
Readd InlineCode component
MDX2 removed the `inlineCode` component

> The special component name `inlineCode` was removed, we recommend to use `pre` for the block version of code, and code for both the block and inline versions

Source: https://mdxjs.com/migrating/v2/#update-mdx-content
2022-12-20 23:21:08 +01:00
Marcus Blättermann
799013c4cf
Enable code blocks plugin 2022-12-20 23:21:08 +01:00
Marcus Blättermann
ab2946c082
Fix invalid code language
`markdown_` with an underscore was used to basically turn of syntax highlighting, but using unknown languages know throws an error.
2022-12-20 23:21:08 +01:00
Marcus Blättermann
63e787e2a2
Remove unnessary language none 2022-12-20 23:21:08 +01:00
Marcus Blättermann
93768cc909
Change code language from cli to bash 2022-12-20 23:21:07 +01:00
Marcus Blättermann
80144ebad0
Fix dropdowns 2022-12-20 23:21:07 +01:00
Marcus Blättermann
3c93913bb9
Fix ESLint react-hooks/exhaustive-deps 2022-12-20 23:21:07 +01:00
Marcus Blättermann
cb7880d3a6
Replace svg-loader with react-inlinesvg
`svg-loader` is no longer maintained
2022-12-20 23:21:07 +01:00
Marcus Blättermann
70e8e8cb7f
Add prebuild script
This command is automatically run by Next
2022-12-20 23:21:07 +01:00
Marcus Blättermann
8d225de80b
Allow to export static HTML pages 2022-12-20 23:21:07 +01:00
Marcus Blättermann
7dad1596f7
Fix headings with logo 2022-12-20 23:21:07 +01:00
Marcus Blättermann
56d461effe
Fix unescaped characters in MDX 2022-12-20 23:21:06 +01:00
Marcus Blättermann
fdf1a48ebd
Escape character for MDX 2022-12-20 23:21:06 +01:00
Marcus Blättermann
92436c0663
Fix problem with image inside link in MDX 2022-12-20 23:21:06 +01:00
Marcus Blättermann
84db6ea20f
Remove MDX imports 2022-12-20 23:21:06 +01:00
Marcus Blättermann
888a1f4c60
Remove ability to inline HTML content in iFrames 2022-12-20 23:21:06 +01:00
Marcus Blättermann
94f9ddefa4
Remove inlined iframe content 2022-12-20 23:21:06 +01:00
Marcus Blättermann
1bfff8390a
Replace landing page MDX with page component 2022-12-20 23:21:05 +01:00
Marcus Blättermann
aebe52efa7
Fix improper component nesting
Next doesn't allow block elements inside a `<p>`
2022-12-20 23:21:05 +01:00
Marcus Blättermann
c3e1c771ac
Fix Next problem with copy
Next complains when the server renders something different then the client, therfor we move the differing logic to `useEffect`
2022-12-20 23:21:05 +01:00
Marcus Blättermann
4c7552dcb1
Add Universe projects 2022-12-20 23:21:05 +01:00
Marcus Blättermann
cefbb3d203
Add Universe categories 2022-12-20 23:21:05 +01:00