Skip to content

Commit

Permalink
Merge pull request #6 from BackToBasicsEpita/lotus
Browse files Browse the repository at this point in the history
website x lotus
  • Loading branch information
BackToBasics-epita authored Aug 22, 2024
2 parents 48f489b + 52cf96d commit 4aa9620
Show file tree
Hide file tree
Showing 585 changed files with 40,541 additions and 79 deletions.
39 changes: 14 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Hyas site to Pages
name: Deploy BackToBasics website

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -31,46 +31,34 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.126.0
HUGO_VERSION: 0.128.0
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4

- name: Install dependencies
run: yarn install

- name: Build production website
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
HUGO_ENV: production
TZ: America/Los_Angeles
run: |
yarn build \
-- \
--baseURL "${{ steps.pages.outputs.base_url }}/"
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -86,4 +74,5 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.env
.netlify
.hugo_build.lock
node_modules
public
resources
*.bat
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,24 @@

Avant de commencer, assurez-vous d'avoir les outils suivants installés sur votre machine :

- [Node.js](https://nodejs.org/) (v20.11.0 ou supérieure)
- [Yarn](https://yarnpkg.com/) (on utilise **yarn**, et non npm)
- [Hugo](https://gohugo.io/) (v0.125.0)
- [Go](https://go.dev/) (minimum version v1.20)
- [Hugo Extended](https://gohugo.io/) (minimum version: 0.120.0)

## Installation

1. Clonez le repository du projet :
Clonez le repository du projet :

```sh
git clone https://github.com/BackToBasicsEpita/site.git
cd site
```

2. Installez les dépendances :

```sh
yarn install
```

## Développement

Pour lancer le serveur de développement et voir votre site en local :

```sh
yarn dev
hugo server -D
```

Le site sera disponible à l'adresse : [http://localhost:1313](http://localhost:1313).
11 changes: 11 additions & 0 deletions assets/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"..\\..\\..\\..\\AppData\\Local\\hugo_cache\\modules\\filecache\\modules\\pkg\\mod\\github.com\\gohugoio\\hugo-mod-jslibs-dist\\popperjs\\v2@v2.21100.20000\\package\\dist\\cjs\\popper.js\\*",
"..\\..\\..\\..\\AppData\\Local\\hugo_cache\\modules\\filecache\\modules\\pkg\\mod\\github.com\\twbs\\bootstrap@v5.3.2+incompatible\\js\\*"
]
}
}
}
19 changes: 19 additions & 0 deletions config/_default/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
baseURL = 'http://localhost/'
languageCode = 'en-us'
title = 'BackToBasics'

[module]
# uncomment line below for temporary local development of module,
# when using a 'theme' as a git submodule or git cloned files
replacements = "github.com/colinwilson/lotusdocs -> lotusdocs"
[[module.imports]]
path = "github.com/colinwilson/lotusdocs"
disable = false
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
disable = false

[params]
[params.docs]
darkMode = true
#themeColor = "blue" #blue (default), green, red, yellow, emerald, cardinal, magenta, cyan.
19 changes: 19 additions & 0 deletions config/production/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
baseURL = 'https://backtobasics.github.io/site/'
languageCode = 'en-us'
title = 'BackToBasics'

[module]
# uncomment line below for temporary local development of module,
# when using a 'theme' as a git submodule or git cloned files
replacements = "github.com/colinwilson/lotusdocs -> lotusdocs"
[[module.imports]]
path = "github.com/colinwilson/lotusdocs"
disable = false
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
disable = false

[params]
[params.docs]
darkMode = true
#themeColor = "blue" #blue (default), green, red, yellow, emerald, cardinal, magenta, cyan.
19 changes: 19 additions & 0 deletions content/blog/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "Blog"
description: ""
summary: ""
date: 2023-09-07T16:21:44+02:00
lastmod: 2023-09-07T16:21:44+02:00
draft: false
weight: 50
categories: []
tags: []
contributors: []
pinned: false
homepage: false
seo:
title: "" # custom title (optional)
description: "" # custom description (recommended)
canonical: "" # custom canonical URL (optional)
noindex: false # false (default) or true
---
25 changes: 25 additions & 0 deletions content/blog/example/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: "Example Post"
description: "Just an example post."
summary: "You can use blog posts for announcing product updates and features."
date: 2023-09-07T16:27:22+02:00
lastmod: 2023-09-07T16:27:22+02:00
draft: false
weight: 50
categories: []
tags: []
contributors: []
pinned: false
homepage: false
seo:
title: "" # custom title (optional)
description: "" # custom description (recommended)
canonical: "" # custom canonical URL (optional)
noindex: false # false (default) or true
---

Well-thought-through product announcements will help increase feature awareness and engage users with new functionality. Just like [sharing your public roadmap](https://canny.io/blog/should-you-have-a-public-roadmap/), it's also a great way to let potential customers see that you're constantly improving.

## Further reading

- Read [How to announce product updates and features](https://canny.io/blog/announce-product-updates-features/)
10 changes: 10 additions & 0 deletions content/docs/spé/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
weight: 999
title: "Spé"
description: ""
icon: "article"
date: "2024-08-20T12:33:45+02:00"
lastmod: "2024-08-20T12:33:45+02:00"
draft: true
toc: true
---
10 changes: 10 additions & 0 deletions content/docs/spé/tps/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
weight: 999
title: "Tps"
description: ""
icon: "article"
date: "2024-08-20T12:34:28+02:00"
lastmod: "2024-08-20T12:34:28+02:00"
draft: true
toc: true
---
10 changes: 10 additions & 0 deletions content/docs/sup/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
weight: 999
title: "Sup"
description: ""
icon: "article"
date: "2024-08-20T12:30:18+02:00"
lastmod: "2024-08-20T12:30:18+02:00"
draft: true
toc: true
---
5 changes: 5 additions & 0 deletions content/docs/sup/example-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = 'Example Page'
date = 2024-08-20T12:02:23+02:00
draft = true
+++
10 changes: 10 additions & 0 deletions content/sup/caca/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
weight: 999
title: "Caca"
description: ""
icon: "article"
date: "2024-08-20T12:30:18+02:00"
lastmod: "2024-08-20T12:30:18+02:00"
draft: true
toc: true
---
53 changes: 53 additions & 0 deletions content/sup/caca/example-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: "Code"
description: ""
icon: "code"
date: "2023-05-22T00:44:31+01:00"
lastmod: "2023-05-22T00:44:31+01:00"
draft: false
toc: true
weight: 210
---

{{% alert context="warning" text="The front matter `description` value for this page has been intentionally left empty in order to demonstrate FlexSearch's suggested results fallback behaviour." /%}}

## Code Block Examples

Code block language examples

### Go

```go
package main

import "fmt"

func main() {
fmt.Println("hello world")
}
```

### HTML

```html
<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>
```

### Markdown

```md
# H1 heading

**Some bold text**

*Italic text example*
```
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/BackToBasicsEpita/site

go 1.21

require github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20200 // indirect
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20200 h1:SmpwwN3DNzJWbV+IT8gaFu07ENUFpCvKou5BHYUKuVs=
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20200/go.mod h1:kx8MBj9T7SFR8ZClWvKZPmmUxBaltkoXvnWlZZcSnYA=
github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2 v2.21100.20000/go.mod h1:mFberT6ZtcchrsDtfvJM7aAH2bDKLdOnruUHl0hlapI=
github.com/twbs/bootstrap v5.3.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
46 changes: 3 additions & 43 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,49 +1,9 @@
[build]
command = "hugo"
publish = "public"
functions = "functions"

[build.environment]
NODE_VERSION = "20.11.0"
NPM_VERSION = "10.2.4"
HUGO_VERSION = "0.125.1"

[context.production]
command = "yarn run build"
HUGO_VERSION = "0.120.4"

[context.deploy-preview]
command = "yarn run build -- -b $DEPLOY_PRIME_URL"

[context.branch-deploy]
command = "yarn run build -- -b $DEPLOY_PRIME_URL"

[context.next]
command = "yarn run build"

[context.next.environment]
HUGO_ENV = "next"

[dev]
framework = "#custom"
command = "npm run dev"
targetPort = 1313
port = 8888
publish = "public"
autoLaunch = false

# Redirects and rewrites — https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file

# Custom headers — https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file
[[headers]]
for = "/*"
[headers.values]
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options = "nosniff"
X-XSS-Protection = "1; mode=block"
Content-Security-Policy = "default-src 'self'; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' https://avatars.githubusercontent.com data:; script-src 'self' 'nonce-dXNlcj0iaGVsbG8iLGRvbWFpbj0iaGVua3ZlcmxpbmRlLmNvbSIsZG9jdW1lbnQud3JpdGUodXNlcisiQCIrZG9tYWluKTs=' 'sha256-aWZ3y/RxbBYKHXH0z8+8ljrHG1mSBvyzSfxSMjBSaXk='; style-src 'self'"
X-Frame-Options = "SAMEORIGIN"
Referrer-Policy = "strict-origin"
Permissions-Policy = "geolocation=(self), microphone=(), camera=()"
Cache-Control= '''
public,
max-age=31536000'''
Access-Control-Allow-Origin = "*"
command = "hugo --buildDrafts"
Loading

0 comments on commit 4aa9620

Please sign in to comment.