Skip to content

Commit

Permalink
Merge pull request #8 from DevOpsDaysChicago/mattstratton/add-tools
Browse files Browse the repository at this point in the history
Update docusaurus and some other small stuff
  • Loading branch information
mattstratton authored Mar 4, 2024
2 parents a2be92d + 83b39b4 commit 3c3ad2e
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 47 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Website
# DevOpsDays Chicago Runbooks

This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.

Expand Down Expand Up @@ -40,6 +40,10 @@ $ GIT_USER=<Your GitHub username> 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

<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><span property="dct:title">DevOpsDays Chicago Runbooks</span> by <span property="cc:attributionName">DevOpsDays Chicago</span> is licensed under <a href="http://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">Attribution-ShareAlike 4.0 International<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1"></a></p>
8 changes: 0 additions & 8 deletions docs/tools-and-services/pretix/_category_.json

This file was deleted.

4 changes: 2 additions & 2 deletions docs/tools-and-services/pretix/pretix.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
sidebar_position: 4
---

# Pretix Configuration
# Pretix (Ticketing)

hi
<IIcon icon="mdi:github" height="48" /> This is a GitHub icon.
48 changes: 13 additions & 35 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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'],
Expand All @@ -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,
Expand All @@ -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: [

Expand All @@ -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'},
// ];
// },
// },
// ],
// ],
// };
16 changes: 16 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -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"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions src/theme/MDXComponents.js
Original file line number Diff line number Diff line change
@@ -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 <icon />.
};
Binary file added static/img/chi-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3c3ad2e

Please sign in to comment.