Skip to content

Pages test #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- master
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build

deploy:
name: Deploy to GitHub Pages
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
27 changes: 27 additions & 0 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test deployment

on:
pull_request:
branches:
- master
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm


- name: Install dependencies
run: npm ci
- name: Test build website
run: npm run build
200 changes: 100 additions & 100 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,187 +1,187 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Jumoo docs',
tagline: 'Documentation for jumoo products',
url: 'https://docs.jumoo.co.uk',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'Jumoo', // Usually your GitHub org/user name.
projectName: 'jumoodocs', // Usually your repo name.
title: "Jumoo docs",
tagline: "Documentation for jumoo products",
url: "https://docs.jumoo.co.uk/",
baseUrl: "/",
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "Jumoo", // Usually your GitHub org/user name.
projectName: "jumoodocs", // Usually your repo name.

presets: [
[
'classic',
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: 'usync',
lastVersion: 'current',
routeBasePath: 'usync',
sidebarPath: require.resolve('./sidebars.js'),
path: "usync",
lastVersion: "current",
routeBasePath: "usync",
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
editUrl: 'https://github.com/Jumoo/jumoo-docs/edit/master',

editUrl: "https://github.com/Jumoo/jumoo-docs/edit/master",
versions: {
current: {
label: 'v15.x - Umbraco 15'
label: "v15.x - Umbraco 15",
},
"13.x" : {
label: 'v13.x - Umbraco 13',
banner: 'none'
"13.x": {
label: "v13.x - Umbraco 13",
banner: "none",
},
"12.x": {
label: 'v12.x - Umbraco 12',
banner: 'unmaintained'
},
label: "v12.x - Umbraco 12",
banner: "unmaintained",
},

"10.x": {
label: 'v10.x - Umbraco 10',
banner: 'none'
},
label: "v10.x - Umbraco 10",
banner: "none",
},
"8.x": {
label: 'v8.x - Umbraco 8',
banner: 'none'
}
}
label: "v8.x - Umbraco 8",
banner: "none",
},
},
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
"@docusaurus/plugin-content-docs",
{
id: 'tm',
path: 'tm',
routeBasePath: 'tm',
editUrl: 'https://github.com/Jumoo/jumoo-docs/edit/master',
sidebarPath: require.resolve('./sidebars.js'),
lastVersion: 'current',
id: "tm",
path: "tm",
routeBasePath: "tm",
editUrl: "https://github.com/Jumoo/jumoo-docs/edit/master",
sidebarPath: require.resolve("./sidebars.js"),
lastVersion: "current",
versions: {
current: {
label: 'v15.x - Umbraco 15'
label: "v15.x - Umbraco 15",
},
"13.x": {
label: 'v13.x - Umbraco 13',
banner: 'none'
},
label: "v13.x - Umbraco 13",
banner: "none",
},
"12.x": {
label: 'v12.x - Umbraco 12',
banner: 'unmaintained'
},
"10.x": {
label: 'v10.x - Umbraco 10',
banner: 'none'
},
"8.x": {
label: 'v8.x - Umbraco 8',
banner: 'none'
}
}
}
]
label: "v12.x - Umbraco 12",
banner: "unmaintained",
},

"10.x": {
label: "v10.x - Umbraco 10",
banner: "none",
},
"8.x": {
label: "v8.x - Umbraco 8",
banner: "none",
},
},
},
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'JumooDocs',
title: "JumooDocs",
logo: {
alt: 'jumoo-logo',
src: 'img/jumoo.png',
alt: "jumoo-logo",
src: "img/jumoo.png",
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'uSync',
type: "doc",
docId: "intro",
position: "left",
label: "uSync",
},
{
type: 'doc',
docsPluginId : 'tm',
docId: 'intro',
position: 'left',
label: 'Translation manager'
},
type: "doc",
docsPluginId: "tm",
docId: "intro",
position: "left",
label: "Translation manager",
},
{
type: 'docsVersionDropdown',
position: 'right',
type: "docsVersionDropdown",
position: "right",
dropdownActiveClassDisabled: true,
},
},
{
type: 'docsVersionDropdown',
position: 'right',
type: "docsVersionDropdown",
position: "right",
dropdownActiveClassDisabled: true,
docsPluginId: 'tm'
},
docsPluginId: "tm",
},
{
href: 'https://github.com/Jumoo/jumoo-docs/',
label: 'GitHub',
position: 'right',
href: "https://github.com/Jumoo/jumoo-docs/",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: 'dark',
style: "dark",
links: [
{
title: 'Docs',
title: "Docs",
items: [
{
label: 'uSync',
to: '/usync/intro',
label: "uSync",
to: "/usync/intro",
},
{
label: 'Translation Manager',
to: '/tm/',
label: "Translation Manager",
to: "/tm/",
},
],
},
{
title: 'About',
title: "About",
items: [
{
label: 'Jumoo',
href: 'https://jumoo.co.uk',
label: "Jumoo",
href: "https://jumoo.co.uk",
},
{
label: 'Products',
href: 'https://jumoo.co.uk/products.php',
label: "Products",
href: "https://jumoo.co.uk/products.php",
},
{
label: 'Blog',
href: 'https://jumoo.co.uk/blog',
label: "Blog",
href: "https://jumoo.co.uk/blog",
},
],
},
{
title: 'More',
title: "More",
items: [
{
label: 'GitHub',
href: 'https://github.com/Jumoo/jumoo-docs',
label: "GitHub",
href: "https://github.com/Jumoo/jumoo-docs",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Jumoo.`,
},
prism: {
additionalLanguages: ['powershell', 'csharp'],
additionalLanguages: ["powershell", "csharp"],
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
Expand Down
8 changes: 4 additions & 4 deletions src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import Link from '@docusaurus/Link';
const FeatureList = [
{
title: 'uSync / uSync.Complete',
img: '/img/complete-256.png',
link: '/usync/intro',
img: 'img/complete-256.png',
link: 'usync/intro',
description: (
<>
uSync lets you keep your Umbraco sites in sync by reading and writing settings to and from the disk
Expand All @@ -17,8 +17,8 @@ const FeatureList = [
},
{
title: 'Translation Manager',
img: '/img/tmlogo.png',
link: '/tm',
img: 'img/tmlogo.png',
link: 'tm',
description: (
<>
Translation Manager provides a quick and simple way to get your Umbraco website translated and works
Expand Down
Loading
Loading