Skip to content

Commit

Permalink
Customiser l’affichage du site web (#2)
Browse files Browse the repository at this point in the history
* refactor: neutralize homepage

* refactor: use blue-ish colors to remind school's theme

* fix: redirect to valid github page

* refactor: remove blog part and rework docs structure

* chore(7): install yarn

* ci: Add deploy action

* refactor: correctly restructure the docs folder

* feat: add definitive images & title, add placeholders

* refactor: change homepage lorem ipsum to real desc
  • Loading branch information
HunteRoi authored Nov 3, 2021
1 parent deaa0a5 commit 710dd7b
Show file tree
Hide file tree
Showing 39 changed files with 1,686 additions and 1,875 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: GitHub Pages

on:
push:
branches:
- main
paths:
- '.github/workflows/deploy.yml'
pull_request:

jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-
- run: yarn install --frozen-lockfile
- run: yarn build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

package-lock.json
12 changes: 0 additions & 12 deletions blog/2019-05-28-first-blog-post.md

This file was deleted.

44 changes: 0 additions & 44 deletions blog/2019-05-29-long-blog-post.md

This file was deleted.

20 changes: 0 additions & 20 deletions blog/2021-08-01-mdx-blog-post.mdx

This file was deleted.

Binary file not shown.
25 changes: 0 additions & 25 deletions blog/2021-08-26-welcome/index.md

This file was deleted.

17 changes: 0 additions & 17 deletions blog/authors.yml

This file was deleted.

32 changes: 11 additions & 21 deletions docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,24 @@
sidebar_position: 1
---

# Tutorial Intro
# Introduction

Let's discover **Docusaurus in less than 5 minutes**.
Ullamco ad est dolor ipsum consequat excepteur culpa deserunt id duis non dolore non. Aliquip amet reprehenderit duis pariatur nisi. Ad cillum esse eu elit aliquip laboris laboris sit dolor voluptate in. Tempor nostrud Lorem ad sunt ad mollit eiusmod consequat minim fugiat incididunt adipisicing. Do eiusmod sunt excepteur ad commodo consectetur laborum esse magna id cillum consectetur consectetur. Proident cillum incididunt cillum nulla id commodo.

## Getting Started
Mollit laborum sint enim labore ex voluptate proident. Aute sunt esse exercitation in. Duis incididunt velit enim eu ea id commodo non exercitation.

Get started by **creating a new site**.
Irure aute qui officia in duis sunt nisi id irure. Ad eiusmod sit cillum labore fugiat. Incididunt reprehenderit exercitation fugiat id ipsum tempor proident sint ea. Sint proident enim adipisicing aliqua adipisicing qui aliqua deserunt. Exercitation dolor magna in aliquip enim reprehenderit elit eiusmod deserunt anim culpa.

Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
Ipsum nulla ex ut ex do. Cillum non proident proident ullamco amet mollit adipisicing mollit nulla duis laborum. Deserunt sunt non sit consequat amet ad qui nulla. Cupidatat proident quis minim adipisicing non consectetur est anim voluptate occaecat nostrud nulla. Dolor sint sint aute incididunt do esse quis quis quis consequat ullamco. Proident nisi non aliqua deserunt ex consequat veniam aliquip cupidatat quis deserunt.

## Generate a new site
Ad ipsum pariatur in cillum dolor esse cupidatat culpa. Aute aute consequat proident laboris dolor eu occaecat esse. Enim in laboris sit in non in. Commodo eu aute mollit nisi elit. Ut culpa excepteur ut minim exercitation aute officia. Qui ut cillum proident consequat enim laborum.

Generate a new Docusaurus site using the **classic template**:
Do pariatur commodo tempor ut adipisicing pariatur. Occaecat sunt qui exercitation consectetur occaecat. Ut sunt sunt pariatur magna quis. In nostrud tempor cillum enim commodo incididunt. Sit duis culpa ex sunt est sunt eiusmod sunt dolor ut. Do proident nisi ex sit sunt voluptate consequat tempor sunt magna ullamco. Laboris amet consequat sit eiusmod do aliqua irure duis adipisicing id et qui id aute.

```shell
npx @docusaurus/init@latest init my-website classic
```
Ea minim pariatur ipsum elit consequat dolore et. Tempor excepteur duis duis dolore nulla non adipisicing ea. Id aliqua do nulla nulla. Velit aliqua pariatur Lorem id adipisicing tempor eu magna sit occaecat aliquip. Id ipsum aute voluptate veniam Lorem sit aliqua ipsum amet. Id pariatur minim non ut nulla id. Ea elit laborum excepteur dolor Lorem velit occaecat sint.

## Start your site
Sunt voluptate sint duis proident irure aliquip in mollit occaecat dolor consectetur reprehenderit consequat aliqua. Esse qui laborum ex nisi aliqua ipsum magna eiusmod est. Sunt amet sit duis cillum nostrud elit mollit excepteur fugiat laboris nisi aute ex culpa. Enim enim esse veniam cillum nulla exercitation aliquip mollit ut veniam.

Run the development server:
Deserunt proident do do sunt mollit enim velit non esse proident fugiat mollit. Minim esse exercitation consequat in proident. Ad do cupidatat cupidatat ea do. Lorem sunt Lorem labore minim proident ullamco qui id. Elit ad esse id in laboris aute enim tempor incididunt elit ut laborum eu.

```shell
cd my-website

npx docusaurus start
```

Your site starts at `http://localhost:3000`.

Open `docs/intro.md` and edit some lines: the site **reloads automatically** and display your changes.
Sunt mollit laboris proident consequat in ad aliqua. Minim cillum eu sit aliquip consequat laborum reprehenderit nostrud incididunt ad do anim. Incididunt consequat amet veniam irure consequat cupidatat consequat commodo voluptate ea qui reprehenderit. Amet officia tempor nostrud aliqua reprehenderit laborum velit cillum irure ex Lorem eiusmod. Quis anim id deserunt sit nostrud Lorem aute. Dolor do sunt excepteur reprehenderit culpa voluptate.
4 changes: 4 additions & 0 deletions docs/to-remove/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Wiki - How to",
"position": 2
}
35 changes: 35 additions & 0 deletions docs/to-remove/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
sidebar_position: 1
---

# Tutorial Intro

Let's discover **Docusaurus in less than 5 minutes**.

## Getting Started

Get started by **creating a new site**.

Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.

## Generate a new site

Generate a new Docusaurus site using the **classic template**:

```shell
npx @docusaurus/init@latest init my-website classic
```

## Start your site

Run the development server:

```shell
cd my-website

npx docusaurus start
```

Your site starts at `http://localhost:3000`.

Open `docs/intro.md` and edit some lines: the site **reloads automatically** and display your changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 710dd7b

Please sign in to comment.