@docusaurus/theme-classic 0.0.0-5262 → 0.0.0-5265

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/lib/theme/{DocPage → DocRoot}/Layout/Main/index.d.ts +2 -2
  2. package/lib/theme/{DocPage → DocRoot}/Layout/Main/index.js +1 -1
  3. package/lib/theme/{DocPage → DocRoot}/Layout/Main/styles.module.css +0 -0
  4. package/lib/theme/{DocPage → DocRoot}/Layout/Sidebar/ExpandButton/index.d.ts +2 -2
  5. package/lib/theme/{DocPage → DocRoot}/Layout/Sidebar/ExpandButton/index.js +1 -1
  6. package/lib/theme/{DocPage → DocRoot}/Layout/Sidebar/ExpandButton/styles.module.css +0 -0
  7. package/lib/theme/{DocPage → DocRoot}/Layout/Sidebar/index.d.ts +2 -2
  8. package/lib/theme/{DocPage → DocRoot}/Layout/Sidebar/index.js +2 -2
  9. package/lib/theme/{DocPage → DocRoot}/Layout/Sidebar/styles.module.css +0 -0
  10. package/lib/theme/{DocPage → DocRoot}/Layout/index.d.ts +2 -2
  11. package/lib/theme/{DocPage → DocRoot}/Layout/index.js +9 -10
  12. package/{src/theme/DocPage → lib/theme/DocRoot}/Layout/styles.module.css +1 -1
  13. package/lib/theme/{DocPage → DocRoot}/index.d.ts +2 -2
  14. package/lib/theme/DocRoot/index.js +31 -0
  15. package/lib/theme/DocTagDocListPage/index.d.ts +1 -1
  16. package/lib/theme/DocTagDocListPage/index.js +49 -38
  17. package/lib/theme/DocTagsListPage/index.d.ts +1 -1
  18. package/lib/theme/DocTagsListPage/index.js +25 -17
  19. package/lib/theme/DocVersionRoot/index.d.ts +10 -0
  20. package/lib/theme/DocVersionRoot/index.js +46 -0
  21. package/lib/theme/DocsRoot/index.d.ts +10 -0
  22. package/lib/theme/DocsRoot/index.js +18 -0
  23. package/lib/theme/NotFound/Content/index.d.ts +9 -0
  24. package/lib/theme/NotFound/Content/index.js +41 -0
  25. package/lib/theme/{NotFound.d.ts → NotFound/index.d.ts} +1 -1
  26. package/lib/theme/NotFound/index.js +25 -0
  27. package/package.json +14 -14
  28. package/src/theme/{DocPage → DocRoot}/Layout/Main/index.tsx +2 -2
  29. package/src/theme/{DocPage → DocRoot}/Layout/Main/styles.module.css +0 -0
  30. package/src/theme/{DocPage → DocRoot}/Layout/Sidebar/ExpandButton/index.tsx +2 -2
  31. package/src/theme/{DocPage → DocRoot}/Layout/Sidebar/ExpandButton/styles.module.css +0 -0
  32. package/src/theme/{DocPage → DocRoot}/Layout/Sidebar/index.tsx +3 -3
  33. package/src/theme/{DocPage → DocRoot}/Layout/Sidebar/styles.module.css +0 -0
  34. package/src/theme/{DocPage → DocRoot}/Layout/index.tsx +10 -11
  35. package/{lib/theme/DocPage → src/theme/DocRoot}/Layout/styles.module.css +1 -1
  36. package/src/theme/DocRoot/index.tsx +34 -0
  37. package/src/theme/DocTagDocListPage/index.tsx +56 -38
  38. package/src/theme/DocTagsListPage/index.tsx +32 -17
  39. package/src/theme/DocVersionRoot/index.tsx +51 -0
  40. package/src/theme/DocsRoot/index.tsx +22 -0
  41. package/src/theme/NotFound/Content/index.tsx +44 -0
  42. package/src/theme/NotFound/index.tsx +27 -0
  43. package/src/theme-classic.d.ts +16 -8
  44. package/lib/theme/DocPage/index.js +0 -50
  45. package/lib/theme/NotFound.js +0 -52
  46. package/src/theme/DocPage/index.tsx +0 -53
  47. package/src/theme/NotFound.tsx +0 -54
@@ -1,54 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- import React from 'react';
9
- import Translate, {translate} from '@docusaurus/Translate';
10
- import {PageMetadata} from '@docusaurus/theme-common';
11
- import Layout from '@theme/Layout';
12
-
13
- export default function NotFound(): JSX.Element {
14
- return (
15
- <>
16
- <PageMetadata
17
- title={translate({
18
- id: 'theme.NotFound.title',
19
- message: 'Page Not Found',
20
- })}
21
- />
22
- <Layout>
23
- <main className="container margin-vert--xl">
24
- <div className="row">
25
- <div className="col col--6 col--offset-3">
26
- <h1 className="hero__title">
27
- <Translate
28
- id="theme.NotFound.title"
29
- description="The title of the 404 page">
30
- Page Not Found
31
- </Translate>
32
- </h1>
33
- <p>
34
- <Translate
35
- id="theme.NotFound.p1"
36
- description="The first paragraph of the 404 page">
37
- We could not find what you were looking for.
38
- </Translate>
39
- </p>
40
- <p>
41
- <Translate
42
- id="theme.NotFound.p2"
43
- description="The 2nd paragraph of the 404 page">
44
- Please contact the owner of the site that linked you to the
45
- original URL and let them know their link is broken.
46
- </Translate>
47
- </p>
48
- </div>
49
- </div>
50
- </main>
51
- </Layout>
52
- </>
53
- );
54
- }