Initial commit: Docusaurus docker stack and docs

This commit is contained in:
Johan
2026-07-15 18:57:47 +00:00
commit d5b8c97ec3
61 changed files with 1857 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
const FeatureList = [
{
title: 'Elementor Tools (Free)',
to: '/docs/dotjuice-elementor-tools/getting-started',
description: 'Screenshot capture, dark mode, WooCommerce styling widgets, and small utilities for Elementor.',
},
{
title: 'Elementor Tools Pro',
to: '/docs/dotjuice-elementor-tools-pro/getting-started',
description: 'Advanced WooCommerce widgets: AJAX filtering, cart, quick view, custom product tabs, and ACF frontend forms.',
},
{
title: 'Pagespeed',
to: '/docs/dotjuice-pagespeed/getting-started',
description: 'Full-page caching, CSS/JS optimisation, image loading, and database cleanup.',
},
];
function Feature({title, to, description}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center padding-horiz--md">
<Heading as="h3">
<Link to={to}>{title}</Link>
</Heading>
<p>{description}</p>
</div>
</div>
);
}
export default function HomepageFeatures() {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
);
}

View File

@@ -0,0 +1,11 @@
.features {
display: flex;
align-items: center;
padding: 2rem 0;
width: 100%;
}
.featureSvg {
height: 200px;
width: 200px;
}

39
site/src/css/custom.css Normal file
View File

@@ -0,0 +1,39 @@
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #25bec2;
--ifm-color-primary-dark: #25bec2;
--ifm-color-primary-darker: #25bec2;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #25bec2;
--ifm-color-primary-lighter: #25bec2;
--ifm-color-primary-lightest: #25bec2;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
--ifm-footer-background-color: #111113 !important;
}
/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #25bec2;
--ifm-color-primary-dark: #25bec2;
--ifm-color-primary-darker: #25bec2;
--ifm-color-primary-darkest: #25bec2;
--ifm-color-primary-light: #25bec2;
--ifm-color-primary-lighter: #25bec2;
--ifm-color-primary-lightest: #25bec2;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
--ifm-footer-background-color: #111113 !important;
}
/* Footer background: :root doesn't reach the footer because Infima's own
.footer--dark rule sets --ifm-footer-background-color directly on itself,
which always wins over an inherited value regardless of layers/order. */
.footer--dark {
--ifm-footer-background-color: #111113;
}

41
site/src/pages/index.js Normal file
View File

@@ -0,0 +1,41 @@
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Heading from '@theme/Heading';
import styles from './index.module.css';
function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link className="button button--secondary button--lg" to="/docs/">
Browse the Documentation
</Link>
</div>
</div>
</header>
);
}
export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={siteConfig.title}
description="Documentation for the Dotjuice WordPress plugins.">
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
);
}

View File

@@ -0,0 +1,23 @@
/**
* CSS files with the .module.css suffix will be treated as CSS modules
* and scoped locally.
*/
.heroBanner {
padding: 4rem 0;
text-align: center;
position: relative;
overflow: hidden;
}
@media screen and (max-width: 996px) {
.heroBanner {
padding: 2rem;
}
}
.buttons {
display: flex;
align-items: center;
justify-content: center;
}

View File

@@ -0,0 +1,7 @@
---
title: Markdown page example
---
# Markdown page example
You don't need React to write simple standalone pages.