diff --git a/README.md b/README.md index a6e7150..e44a495 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Website +# DevOpsDays Chicago Runbooks This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. @@ -40,6 +40,10 @@ $ GIT_USER= yarn deploy If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. --------- +## Resources: + +- [Iconify](https://docusaurus.community/knowledge/design/icons/iconify/) + +## License

DevOpsDays Chicago Runbooks by DevOpsDays Chicago is licensed under Attribution-ShareAlike 4.0 International

diff --git a/docs/tools-and-services/pretix/_category_.json b/docs/tools-and-services/pretix/_category_.json deleted file mode 100644 index 5bd016c..0000000 --- a/docs/tools-and-services/pretix/_category_.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "label": "Pretix (Ticketing)", - "position": 99, - "link": { - "type": "generated-index", - "description": "Pretix is the ticketing system" - } -} diff --git a/docs/tools-and-services/pretix/pretix.md b/docs/tools-and-services/pretix/pretix.md index c407105..37793d5 100644 --- a/docs/tools-and-services/pretix/pretix.md +++ b/docs/tools-and-services/pretix/pretix.md @@ -2,6 +2,6 @@ sidebar_position: 4 --- -# Pretix Configuration +# Pretix (Ticketing) -hi \ No newline at end of file + This is a GitHub icon. \ No newline at end of file diff --git a/docusaurus.config.js b/docusaurus.config.js index db3af3a..7350b21 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -7,8 +7,8 @@ const darkCodeTheme = themes.dracula; /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'devopsdays Chicago Runbooks', - tagline: 'Documentation for running the devopsdays Chicago event', + title: 'DevOpsDays Chicago Runbooks', + tagline: 'Documentation for running the DevOpsDays Chicago event', url: 'https://docs.devopsdayschi.org', baseUrl: '/', onBrokenLinks: 'warn', @@ -20,9 +20,6 @@ const config = { organizationName: 'devopsdayschicago', // Usually your GitHub org/user name. projectName: 'dodchi-docs', // Usually your repo name. - // Even if you don't use internalization, you can use this field to set useful - // metadata like html lang. For example, if your site is Chinese, you may want - // to replace "en" with "zh-Hans". i18n: { defaultLocale: 'en', locales: ['en'], @@ -35,10 +32,8 @@ const config = { ({ docs: { routeBasePath: '/', // Serve the docs at the site's root - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/devopsdayschi/dodchi-docs/tree/main/packages/create-docusaurus/templates/shared/', + // editUrl: + // 'https://github.com/devopsdayschi/dodchi-docs/tree/main/packages/create-docusaurus/templates/shared/', sidebarPath: './sidebars.js', }, blog: false, @@ -52,11 +47,19 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ + // announcementBar: { + // id: "in_progress", + // content: + // "This is a work in progress!", + // backgroundColor: "fafbfc", + // textColor: '#091E42', + // isCloseable: false, + // }, navbar: { title: 'devopsdays Chicago Runbooks', logo: { alt: 'devopsdays Chicago Runbooks Logo', - src: 'img/logo.svg', + src: 'img/chi-logo.png', }, items: [ @@ -79,28 +82,3 @@ const config = { }; module.exports = config; - -// export default { -// plugins: [ -// [ -// '@docusaurus/plugin-content-docs', -// { -// async sidebarItemsGenerator({ -// defaultSidebarItemsGenerator, -// numberPrefixParser, -// item, -// version, -// docs, -// categoriesMetadata, -// isCategoryIndex, -// }) { -// // Example: return an hardcoded list of static sidebar items -// return [ -// {type: 'doc', id: 'doc1'}, -// {type: 'doc', id: 'doc2'}, -// ]; -// }, -// }, -// ], -// ], -// }; \ No newline at end of file diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..650e4dc --- /dev/null +++ b/netlify.toml @@ -0,0 +1,16 @@ +# Settings for the [build] key are global and are applied to +# all deploy contexts unless overridden by a context-specific setting. +[build] + publish = "/build" + + # Default build command. + command = "yarn build" + +[context.production] + environment = { NODE_VERSION = "18.04" } + +[context.deploy-preview] + publish = "/build" + +[context.dev.environment] + NODE_ENV = "development" diff --git a/package.json b/package.json index 48863a0..30c816a 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "dependencies": { "@docusaurus/core": "3.0.0", "@docusaurus/preset-classic": "3.0.0", + "@iconify/react": "^4.1.1", "@mdx-js/react": "^3.0.0", "clsx": "^1.2.1", "prism-react-renderer": "^2.1.0", diff --git a/src/theme/MDXComponents.js b/src/theme/MDXComponents.js new file mode 100644 index 0000000..01f3b89 --- /dev/null +++ b/src/theme/MDXComponents.js @@ -0,0 +1,10 @@ +import React from 'react'; +// Import the original mapper +import MDXComponents from '@theme-original/MDXComponents'; +import { Icon } from '@iconify/react'; // Import the entire Iconify library. + +export default { + // Re-use the default mapping + ...MDXComponents, + IIcon: Icon, // Make the iconify Icon component available in MDX as . +}; \ No newline at end of file diff --git a/static/img/chi-logo.png b/static/img/chi-logo.png new file mode 100644 index 0000000..7f9e119 Binary files /dev/null and b/static/img/chi-logo.png differ diff --git a/yarn.lock b/yarn.lock index 6d4c1fe..585d16a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1642,6 +1642,18 @@ dependencies: "@hapi/hoek" "^9.0.0" +"@iconify/react@^4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@iconify/react/-/react-4.1.1.tgz#da1bf03cdca9427f07cf22cf5b63fa8f02db4722" + integrity sha512-jed14EjvKjee8mc0eoscGxlg7mSQRkwQG3iX3cPBCO7UlOjz0DtlvTqxqEcHUJGh+z1VJ31Yhu5B9PxfO0zbdg== + dependencies: + "@iconify/types" "^2.0.0" + +"@iconify/types@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@iconify/types/-/types-2.0.0.tgz#ab0e9ea681d6c8a1214f30cd741fe3a20cc57f57" + integrity sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg== + "@jest/schemas@^29.6.3": version "29.6.3" resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03"