Skip to content

Commit

Permalink
feat: init docusaurus project
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Oct 29, 2023
1 parent 1654318 commit f1eac4d
Show file tree
Hide file tree
Showing 35 changed files with 13,286 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build Packages
run: npm run build
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/hydrogen
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
8 changes: 8 additions & 0 deletions blog/2023-10-29-welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
slug: welcome
title: Welcome
authors: [emmanuelgautier]
tags: [galactiks]
---

Welcome on Galactiks blog. We will publish here the next galactiks projects releases and various news about CMS, AI Content generation and more.
5 changes: 5 additions & 0 deletions blog/authors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
emmanuelgautier:
name: Emmanuel Gautier
title: Galactiks Maintainer
url: https://www.emmanuelgautier.com/
image_url: https://github.com/emmanuelgautier.png
1 change: 1 addition & 0 deletions docs/contents/article.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Article Content Type
1 change: 1 addition & 0 deletions docs/contents/creative-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Creative Work Content Type
1 change: 1 addition & 0 deletions docs/contents/organization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Organization Content Type
1 change: 1 addition & 0 deletions docs/contents/page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Page Content Type
1 change: 1 addition & 0 deletions docs/contents/person.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Person Content Type
1 change: 1 addition & 0 deletions docs/contents/place.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Place Content Type
1 change: 1 addition & 0 deletions docs/contents/webpage-element.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# WebPage Element Content Type
1 change: 1 addition & 0 deletions docs/contents/website.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Website Content Type
7 changes: 7 additions & 0 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
description: Learn how to install Galactiks packages.
slug: /installation/
---

# Installation

7 changes: 7 additions & 0 deletions docs/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
slug: /
---

# Intro

Let's discover Galactiks ecosystem.
118 changes: 118 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
// @ts-check

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

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Galactiks',
tagline: 'Generate feature-rich websites with ease',
favicon: 'img/favicon.ico',

url: 'https://docs.galactiks.com',
baseUrl: '/',
trailingSlash: true,

organizationName: 'thegalactiks',
projectName: 'docs.galactiks.com',

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',

i18n: {
defaultLocale: 'en',
locales: ['en'],
},

presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/thegalactiks/docs.galactiks.com/tree/main/',
},
blog: {
showReadingTime: true,
editUrl:
'https://github.com/thegalactiks/docs.galactiks.com/tree/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Galactiks',
logo: {
alt: 'Galactiks',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'docs',
position: 'left',
label: 'Docs',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/thegalactiks',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Introduction',
to: '/docs/',
},
],
},
{
title: 'Community',
items: [
{
label: 'Twitter',
href: 'https://twitter.com/thegalactiks',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/thegalactiks',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Galactiks.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};

module.exports = config;
Loading

0 comments on commit f1eac4d

Please sign in to comment.