Compare commits

..

4 commits

Author SHA1 Message Date
Félix Piédallu
67b26de41d add docusaurus faster 2025-04-05 19:21:05 +02:00
Félix Piédallu
28729da058 update config 2025-04-05 19:20:37 +02:00
Félix Piédallu
caa5566797 remove previous/next button 2025-04-05 19:20:06 +02:00
Félix Piédallu
30f2cefcd5 commit initial du site vitrine 2025-04-05 16:39:29 +02:00
24 changed files with 9662 additions and 2 deletions

20
.gitignore vendored Normal file
View file

@ -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*

View file

@ -1,3 +1,41 @@
# vitrine
# Site vitrine de Semalibre
Site vitrine de Semalibre
Ce site web est créé avec [Docusaurus](https://docusaurus.io/).
### Installation
```
$ yarn
```
### Local Development
```
$ yarn start
```
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
### Build
```
$ yarn build
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.
### Deployment
Using SSH:
```
$ USE_SSH=true yarn deploy
```
Not using SSH:
```
$ 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.

View file

@ -0,0 +1 @@
label: Faloj

View file

View file

@ -0,0 +1 @@
# Mes projets

5
docs/team/index.mdx Normal file
View file

@ -0,0 +1,5 @@
---
sidebar_position: 0
---
# The team

View file

@ -0,0 +1 @@
label: Jms

0
docs/team/jms/index.mdx Normal file
View file

View file

@ -0,0 +1 @@
# Mes projets

View file

@ -0,0 +1 @@
label: Louis Rannou

View file

View file

@ -0,0 +1 @@
# Mes projets

View file

@ -0,0 +1 @@
label: Félix Piédallu

View file

View file

@ -0,0 +1 @@
# Mes projets

View file

@ -0,0 +1 @@
label: Samantha Jalabert

0
docs/team/sam/index.mdx Normal file
View file

View file

@ -0,0 +1 @@
# Mes projets

144
docusaurus.config.ts Normal file
View file

@ -0,0 +1,144 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'Semalibre',
tagline: 'Why not embed ?',
favicon: 'img/favicon.png',
url: 'https://semalibre.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
onBrokenAnchors: 'throw',
onDuplicateRoutes: 'throw',
future: {
experimental_faster: true,
},
i18n: {
defaultLocale: 'en',
locales: [
'en',
// 'fr',
],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
routeBasePath: '/',
},
blog: {
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg', // TODO:
colorMode: {
respectPrefersColorScheme: true,
},
announcementBar: {
id: 'beta-docusaurus',
content: '🛠️ This site is in beta, please report any issues!',
backgroundColor: 'darkOrange'
},
navbar: {
title: 'Semalibre',
logo: {
alt: 'Semalibre Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'teamSidebar',
position: 'left',
label: 'The team',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://git.semalibre.com/semalibre/vitrine',
label: 'Source',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Contact',
items: [
{
label: 'Email',
href: 'mailto:contact@semalibre.com',
},
],
},
{
title: 'Infos',
items: [
{
label: 'Git - Forgejo',
href: 'https://git.semalibre.com/Semalibre',
},
{
label: 'Mentions légales',
href: '/mentions-legales',
},
{
label: 'Pappers',
href: 'https://www.pappers.fr/entreprise/syslinbit-897717005',
},
],
},
],
copyright: `Copyleft ${new Date().getFullYear()} Syslinbit. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: [
'bash',
'c',
'css',
'markup-templating',
'django',
'lua',
'nginx',
'php',
'ruby',
'shell-session',
'toml',
'yaml'
],
},
} satisfies Preset.ThemeConfig,
};
export default config;

48
package.json Normal file
View file

@ -0,0 +1,48 @@
{
"name": "vitrine",
"version": "0.0.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "3.7.0",
"@docusaurus/faster": "^3.7.0",
"@docusaurus/preset-classic": "3.7.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.7.0",
"@docusaurus/tsconfig": "3.7.0",
"@docusaurus/types": "3.7.0",
"typescript": "~5.6.2"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 3 chrome version",
"last 3 firefox version",
"last 5 safari version"
]
},
"engines": {
"node": ">=18.0"
}
}

33
sidebars.ts Normal file
View file

@ -0,0 +1,33 @@
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
const sidebars: SidebarsConfig = {
// By default, Docusaurus generates a sidebar from the docs folder structure
teamSidebar: [{type: 'autogenerated', dirName: 'team'}],
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
};
export default sidebars;

View file

@ -0,0 +1,12 @@
import React, {type ReactNode} from 'react';
import {useDoc} from '@docusaurus/plugin-content-docs/client';
import DocPaginator from '@theme/DocPaginator';
/**
* This extra component is needed, because <DocPaginator> should remain generic.
* DocPaginator is used in non-docs contexts too: generated-index pages...
*/
export default function DocItemPaginator(): ReactNode {
const {metadata} = useDoc();
return null;
}

8
tsconfig.json Normal file
View file

@ -0,0 +1,8 @@
{
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
"baseUrl": "."
},
"exclude": [".docusaurus", "build"]
}

9342
yarn.lock Normal file

File diff suppressed because it is too large Load diff