Skip to content

Commit 3ac01ba

Browse files
committed
Setup du site back to basics
- le thème "docks" a été ajouté - ça va un peu dans tous les sens, faudra modifier les shortcodes pour rendre le truc plus utilisable - j'ai laissé le .vscode parce que c'est hyas qui l'a créer - changement de la main page & du package.json pour permettre à quelqu'un de clone, puis de lancer directement - ajout du readme
1 parent 99c0000 commit 3ac01ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+4633
-131
lines changed

.gitignore

+5-129
Original file line numberDiff line numberDiff line change
@@ -1,130 +1,6 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
.pnpm-debug.log*
9-
10-
# Diagnostic reports (https://nodejs.org/api/report.html)
11-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12-
13-
# Runtime data
14-
pids
15-
*.pid
16-
*.seed
17-
*.pid.lock
18-
19-
# Directory for instrumented libs generated by jscoverage/JSCover
20-
lib-cov
21-
22-
# Coverage directory used by tools like istanbul
23-
coverage
24-
*.lcov
25-
26-
# nyc test coverage
27-
.nyc_output
28-
29-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30-
.grunt
31-
32-
# Bower dependency directory (https://bower.io/)
33-
bower_components
34-
35-
# node-waf configuration
36-
.lock-wscript
37-
38-
# Compiled binary addons (https://nodejs.org/api/addons.html)
39-
build/Release
40-
41-
# Dependency directories
42-
node_modules/
43-
jspm_packages/
44-
45-
# Snowpack dependency directory (https://snowpack.dev/)
46-
web_modules/
47-
48-
# TypeScript cache
49-
*.tsbuildinfo
50-
51-
# Optional npm cache directory
52-
.npm
53-
54-
# Optional eslint cache
55-
.eslintcache
56-
57-
# Optional stylelint cache
58-
.stylelintcache
59-
60-
# Microbundle cache
61-
.rpt2_cache/
62-
.rts2_cache_cjs/
63-
.rts2_cache_es/
64-
.rts2_cache_umd/
65-
66-
# Optional REPL history
67-
.node_repl_history
68-
69-
# Output of 'npm pack'
70-
*.tgz
71-
72-
# Yarn Integrity file
73-
.yarn-integrity
74-
75-
# dotenv environment variable files
761
.env
77-
.env.development.local
78-
.env.test.local
79-
.env.production.local
80-
.env.local
81-
82-
# parcel-bundler cache (https://parceljs.org/)
83-
.cache
84-
.parcel-cache
85-
86-
# Next.js build output
87-
.next
88-
out
89-
90-
# Nuxt.js build / generate output
91-
.nuxt
92-
dist
93-
94-
# Gatsby files
95-
.cache/
96-
# Comment in the public line in if your project uses Gatsby and not Next.js
97-
# https://nextjs.org/blog/next-9-1#public-directory-support
98-
# public
99-
100-
# vuepress build output
101-
.vuepress/dist
102-
103-
# vuepress v2.x temp and cache directory
104-
.temp
105-
.cache
106-
107-
# Docusaurus cache and generated files
108-
.docusaurus
109-
110-
# Serverless directories
111-
.serverless/
112-
113-
# FuseBox cache
114-
.fusebox/
115-
116-
# DynamoDB Local files
117-
.dynamodb/
118-
119-
# TernJS port file
120-
.tern-port
121-
122-
# Stores VSCode versions used for testing VSCode extensions
123-
.vscode-test
124-
125-
# yarn v2
126-
.yarn/cache
127-
.yarn/unplugged
128-
.yarn/build-state.yml
129-
.yarn/install-state.gz
130-
.pnp.*
2+
.netlify
3+
.hugo_build.lock
4+
node_modules
5+
public
6+
resources

.gitpod.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Source: https://github.com/gitpod-io/template-hugo/blob/main/.gitpod.yml
2+
3+
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
4+
tasks:
5+
- name: Run start up tasks
6+
before: brew install hugo
7+
init: pnpm install
8+
command: hugo server --baseURL $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0 --disableFastRender --noHTTPCache --navigateToChanged
9+
10+
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
11+
ports:
12+
- port: 1313
13+
onOpen: open-preview

.npmrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
enable-pre-post-scripts=true
2+
auto-install-peers=true
3+
node-linker=hoisted
4+
prefer-symlinked-executables=false

.prettierignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.html
2+
*.ico
3+
*.png
4+
*.jp*g
5+
*.toml
6+
*.*ignore
7+
*.svg
8+
*.xml
9+
LICENSE
10+
.npmrc
11+
.gitkeep
12+
*.woff*

.prettierrc.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Default config
2+
tabWidth: 4
3+
endOfLine: crlf
4+
singleQuote: true
5+
printWidth: 100000
6+
trailingComma: none
7+
bracketSameLine: true
8+
quoteProps: consistent
9+
experimentalTernaries: true
10+
11+
# Overrided config
12+
overrides:
13+
- files: ["*.md", "*.json", "*.yaml"]
14+
options:
15+
tabWidth: 2
16+
singleQuote: false
17+
- files: ["*.scss"]
18+
options:
19+
singleQuote: false

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["budparr.language-hugo-vscode", "yzhang.markdown-all-in-one", "tamasfe.even-better-toml", "dbaeumer.vscode-eslint", "DavidAnson.vscode-markdownlint", "stylelint.vscode-stylelint"]
3+
}

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"editor.wordWrap": "off",
3+
"files.trimTrailingWhitespace": true,
4+
"files.insertFinalNewline": true,
5+
"editor.tabSize": 2,
6+
"editor.insertSpaces": true
7+
}

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Association BackToBasics
3+
Copyright (c) 2020-2024 Hyas
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+34-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1-
# site
1+
# Site web pour BackToBasics
2+
3+
## Prérequis
4+
5+
Avant de commencer, assurez-vous d'avoir les outils suivants installés sur votre machine :
6+
7+
- [Node.js](https://nodejs.org/) (v20.11.0 ou supérieure)
8+
- [Yarn](https://yarnpkg.com/) (on utilise **yarn**, et non npm)
9+
- [Hugo](https://gohugo.io/) (v0.125.0)
10+
11+
## Installation
12+
13+
1. Clonez le repository du projet :
14+
15+
```sh
16+
git clone https://github.com/BackToBasicsEpita/site.git
17+
cd site
18+
```
19+
20+
2. Installez les dépendances :
21+
22+
```sh
23+
yarn install
24+
```
25+
26+
## Développement
27+
28+
Pour lancer le serveur de développement et voir votre site en local :
29+
30+
```sh
31+
yarn start
32+
```
33+
34+
Le site sera disponible à l'adresse : [http://localhost:1313](http://localhost:1313).

assets/cover.png

7.96 KB
Loading

assets/favicon.ico

8.7 KB
Binary file not shown.

assets/favicon.png

20.3 KB
Loading

assets/favicon.svg

+1
Loading

assets/images/.gitkeep

Whitespace-only changes.

assets/js/custom.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Put your custom JS code here

assets/jsconfig.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"*": ["*", "..\\node_modules\\@hyas\\doks-core\\assets\\*"]
6+
}
7+
}
8+
}

assets/mask-icon.svg

+1
Loading

assets/scss/common/_custom.scss

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Put your custom SCSS code here
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Put your custom SCSS variables here

assets/svgs/.gitkeep

Whitespace-only changes.

config/_default/hugo.toml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
title = "BackToBasics"
2+
baseurl = "http://localhost/"
3+
canonifyURLs = false
4+
disableAliases = true
5+
disableHugoGeneratorInject = true
6+
# disableKinds = ["taxonomy", "term"]
7+
enableEmoji = true
8+
enableGitInfo = false
9+
enableRobotsTXT = true
10+
languageCode = "en"
11+
paginate = 10
12+
rssLimit = 10
13+
summarylength = 20 # 70 (default)
14+
15+
# Multilingual
16+
defaultContentLanguage = "en"
17+
disableLanguages = ["de", "nl"]
18+
defaultContentLanguageInSubdir = false
19+
20+
copyRight = "Copyright (c) 2020-2024 Hyas"
21+
22+
[build.buildStats]
23+
enable = true
24+
25+
[outputs]
26+
home = ["HTML", "RSS", "searchIndex"]
27+
section = ["HTML", "RSS", "SITEMAP"]
28+
29+
[outputFormats.searchIndex]
30+
mediaType = "application/json"
31+
baseName = "search-index"
32+
isPlainText = true
33+
notAlternative = true
34+
35+
# Add output format for section sitemap.xml
36+
[outputFormats.SITEMAP]
37+
mediaType = "application/xml"
38+
baseName = "sitemap"
39+
isHTML = false
40+
isPlainText = true
41+
noUgly = true
42+
rel = "sitemap"
43+
44+
[sitemap]
45+
changefreq = "monthly"
46+
filename = "sitemap.xml"
47+
priority = 0.5
48+
49+
[caches]
50+
[caches.getjson]
51+
dir = ":cacheDir/:project"
52+
maxAge = -1 # "30m"
53+
54+
[taxonomies]
55+
contributor = "contributors"
56+
category = "categories"
57+
tag = "tags"
58+
59+
[permalinks]
60+
blog = "/blog/:slug/"
61+
docs = "/docs/:sections[1:]/:slug/"
62+
# docs = "/docs/1.0/:sections[1:]/:slug/"
63+
64+
[minify.tdewolff.html]
65+
keepWhitespace = false
66+
67+
[related]
68+
threshold = 80
69+
includeNewer = true
70+
toLower = false
71+
[[related.indices]]
72+
name = "categories"
73+
weight = 100
74+
[[related.indices]]
75+
name = "tags"
76+
weight = 80
77+
[[related.indices]]
78+
name = "date"
79+
weight = 10
80+
81+
[imaging]
82+
anchor = "Center"
83+
bgColor = "#ffffff"
84+
hint = "photo"
85+
quality = 85
86+
resampleFilter = "Lanczos"

config/_default/languages.toml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[en]
2+
languageName = "English"
3+
contentDir = "content"
4+
weight = 10
5+
[en.params]
6+
languageISO = "EN"
7+
languageTag = "en-US"
8+
footer = "Fait avec le ❤️ par l'association <a class='text-muted' href='https://www.epita.fr/association/back-to-basics/'>BackToBasics</a>"
9+
alertText = '<a class="alert-link stretched-link fw-normal" href="/blog/example-post/">Doks version 1.0 just shipped!</a>'

config/_default/markup.toml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
defaultMarkdownHandler = "goldmark"
2+
3+
[goldmark]
4+
[goldmark.extensions]
5+
linkify = false
6+
[goldmark.parser]
7+
autoHeadingID = true
8+
autoHeadingIDType = "github"
9+
[goldmark.parser.attribute]
10+
block = true
11+
title = true
12+
[goldmark.renderer]
13+
unsafe = true
14+
15+
[highlight]
16+
anchorLineNos = false
17+
codeFences = true
18+
guessSyntax = false
19+
hl_Lines = ''
20+
hl_inline = false
21+
lineAnchors = ''
22+
lineNoStart = 1
23+
lineNos = false
24+
lineNumbersInTable = false
25+
noClasses = false
26+
noHl = false
27+
style = 'monokai'
28+
tabWidth = 2
29+
30+
[tableOfContents]
31+
endLevel = 3
32+
ordered = false
33+
startLevel = 2

0 commit comments

Comments
 (0)