Commit Graph

15855 Commits

Author SHA1 Message Date
Marcus Blättermann
00ae3eff46
Fix syntax highlighting for Training Quickstart 2022-12-15 17:28:43 +01:00
Marcus Blättermann
d46f942c56
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-15 17:28:43 +01:00
Marcus Blättermann
81877e8925
Fix missing comment syntax highlighting 2022-12-15 17:28:43 +01:00
Marcus Blättermann
b5c4a0b96d
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-15 17:28:43 +01:00
Marcus Blättermann
de15cc53f3
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-15 17:28:43 +01:00
Marcus Blättermann
cba71bb300
Add manifest.webmanifest 2022-12-15 17:28:42 +01:00
Marcus Blättermann
5823d88374
Add PWA support 2022-12-15 17:28:42 +01:00
Marcus Blättermann
e8b9b0ae22
Add Smartypants 2022-12-15 17:28:42 +01:00
Marcus Blättermann
eebeb338cf
Add sitemap 2022-12-15 17:28:42 +01:00
Marcus Blättermann
f931bb15b1
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-15 17:28:42 +01:00
Marcus Blättermann
8d12c455a2
Add lang="en" 2022-12-15 17:28:42 +01:00
Marcus Blättermann
ab07d13419
Add _document to be able to customize <html> and <body> 2022-12-15 17:28:41 +01:00
Marcus Blättermann
c1364d9788
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-15 17:28:41 +01:00
Marcus Blättermann
7b3725df20
Fix TypeAnnotation 2022-12-15 17:28:41 +01:00
Marcus Blättermann
1cc2d0ce42
Fix custom table row styling 2022-12-15 17:28:41 +01:00
Marcus Blättermann
efdd305d06
Add plugin to replace strings 2022-12-15 17:28:41 +01:00
Marcus Blättermann
c035885cfc
Convert file to .mjs to be used by Node process 2022-12-15 17:28:40 +01:00
Marcus Blättermann
a1494282db
Fix broken bold markdown 2022-12-15 17:28:40 +01:00
Marcus Blättermann
d78e0e8680
Fix className problem for JSX component 2022-12-15 17:28:40 +01:00
Marcus Blättermann
04c8ea3092
Remove duplicate class
The `language-` class is now automatically injected.
2022-12-15 17:28:40 +01:00
Marcus Blättermann
b5e5d4a334
Replace react-helmet with next/head 2022-12-15 17:28:40 +01:00
Marcus Blättermann
8011b168b2
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-15 17:28:40 +01:00
Marcus Blättermann
31dae2367e
Remove unused prop 2022-12-15 17:28:39 +01:00
Marcus Blättermann
c4990245d1
Update syntax for code block meta data 2022-12-15 17:28:39 +01:00
Marcus Blättermann
a17a8a5b1d
Add code block handling 2022-12-15 17:28:39 +01:00
Marcus Blättermann
38f7f6bcbe
Extract function to own file 2022-12-15 16:03:35 +01:00
Marcus Blättermann
7ce767878b
Remove unused code 2022-12-15 16:03:35 +01:00
Marcus Blättermann
511b8eead2
Add ability to load code from GitHub 2022-12-15 16:03:35 +01:00
Marcus Blättermann
55f3d1d245
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-15 16:03:35 +01:00
Marcus Blättermann
715b419ce4
Enable code blocks plugin 2022-12-15 16:03:35 +01:00
Marcus Blättermann
70ca224ca6
Remove 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-15 16:03:35 +01:00
Marcus Blättermann
8672adfe82
Remove unnessary language none 2022-12-15 16:03:34 +01:00
Marcus Blättermann
45395db994
Change code language from cli to bash 2022-12-15 16:03:34 +01:00
Marcus Blättermann
786e9c75a3
Fix dropdowns 2022-12-15 16:03:34 +01:00
Marcus Blättermann
8d89deee2e
Fix ESLint react-hooks/exhaustive-deps 2022-12-15 16:03:34 +01:00
Marcus Blättermann
6aaeb26242
Replace svg-loader with react-inlinesvg
`svg-loader` is no longer maintained
2022-12-15 16:03:34 +01:00
Marcus Blättermann
0885a1fcc4
Add prebuild script
This command is automatically run by Next
2022-12-15 16:03:34 +01:00
Marcus Blättermann
2e0f056fe5
Allow to export static HTML pages 2022-12-15 16:03:34 +01:00
Marcus Blättermann
68ad99798a
Fix headings with logo 2022-12-15 16:03:33 +01:00
Marcus Blättermann
a82270613f
Fix unescaped characters in MDX 2022-12-15 16:03:33 +01:00
Marcus Blättermann
30152e4e3b
Escape character for MDX 2022-12-15 16:03:33 +01:00
Marcus Blättermann
987eb52d4d
Fix problem with image inside link in MDX 2022-12-15 16:03:33 +01:00
Marcus Blättermann
4a01a2fc63
Remove MDX imports 2022-12-15 16:03:33 +01:00
Marcus Blättermann
f4b30f7d5d
Remove ability to inline HTML content in iFrames 2022-12-15 16:03:33 +01:00
Marcus Blättermann
f46aa72dcf
Remove inlined iframe content 2022-12-15 16:03:33 +01:00
Marcus Blättermann
81845d1807
Replace landing page MDX with page component 2022-12-15 16:03:33 +01:00
Marcus Blättermann
79fd1ab4ff
Fix improper component nesting
Next doesn't allow block elements inside a `<p>`
2022-12-15 16:03:32 +01:00
Marcus Blättermann
dc04d95401
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-15 16:03:32 +01:00
Marcus Blättermann
da9fb36990
Add Universe projects 2022-12-15 16:03:32 +01:00
Marcus Blättermann
5ce96d52ac
Add Universe categories 2022-12-15 16:03:32 +01:00