Skip to content

Commit

Permalink
Catppuccin theme --> Added setup for enabling and using the theme, wi…
Browse files Browse the repository at this point in the history
…ll continue to fix and prettify the newbie guide through theme *fingers crossed*
  • Loading branch information
choafe committed Sep 7, 2024
1 parent 0a78f2e commit 948bb43
Show file tree
Hide file tree
Showing 48 changed files with 10,961 additions and 172 deletions.
14 changes: 14 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): bullseye, buster
ARG VARIANT=bullseye
FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT}

# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="lts/*"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

# [Optional] Uncomment this section to install additional OS packages
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

# [Optional] Uncomment this line to install global node packages
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <insert global packages>" 2>&1
17 changes: 10 additions & 7 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Debian",
"name": "Ruby",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers/features/ruby:1": {}
"build": {
// Path is relative to the devcontainer.json file.
"dockerfile": "Dockerfile"
},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// // Features to add to the dev container. More info: https://containers.dev/features.
// "image": "mcr.microsoft.com/devcontainers/base:bullseye",
// "features": {
// "ghcr.io/devcontainers/features/ruby:1": {}
// },
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
// Jekyll server
Expand All @@ -17,7 +20,7 @@
35729
],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sh .devcontainer/install-dependencies.sh"
"postCreateCommand": "sh .devcontainer/install-webdev-dependencies.sh"
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ -f Gemfile.lock ] && grep "BUNDLED WITH" Gemfile.lock > /dev/null; then
cat Gemfile.lock | tail -n 2 | grep -C2 "BUNDLED WITH" | tail -n 1 | xargs gem install bundler -v
fi

# Enter directory where website/ Gemfile is stored
# Enter directory where website/ Gemfile is stored.
cd docs

# If there's a Gemfile, then run `bundle install`
Expand All @@ -14,5 +14,5 @@ if [ -f Gemfile ]; then
bundle install
fi

# Return (not necessary)
cd ..
# Install Catpuccin themes locally.
npm install @catppuccin/palette
7 changes: 6 additions & 1 deletion docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ GEM
faraday-net_http (>= 2.0, < 3.2)
faraday-net_http (3.1.0)
net-http
ffi (1.16.3)
ffi (1.17.0-aarch64-linux-gnu)
ffi (1.17.0-arm-linux-gnu)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86-linux-gnu)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
forwardable-extended (2.6.0)
gemoji (4.1.0)
github-pages (231)
Expand Down
3 changes: 0 additions & 3 deletions docs/_assets/css/just-the-docs-custom-dark.scss

This file was deleted.

3 changes: 0 additions & 3 deletions docs/_assets/css/just-the-docs-custom-light.scss

This file was deleted.

8 changes: 0 additions & 8 deletions docs/_assets/css/just-the-docs-default.scss

This file was deleted.

10 changes: 7 additions & 3 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ just_the_docs:
name: Resources
nav_fold: false

# Define default color scheme

color_scheme: custom-light
# Define sass
sass:
load_paths:
- _sass/
- node_modules/@catppuccin/palette/scss/

# Define default color scheme
color_scheme: catppuccin_latte
52 changes: 0 additions & 52 deletions docs/_layouts/default.html

This file was deleted.

6 changes: 0 additions & 6 deletions docs/_layouts/minimal.html

This file was deleted.

5 changes: 0 additions & 5 deletions docs/_layouts/page.html

This file was deleted.

6 changes: 0 additions & 6 deletions docs/_layouts/table_wrappers.html

This file was deleted.

15 changes: 15 additions & 0 deletions docs/_sass/color_schemes/catppuccin_latte.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Style recommendations: https://github.com/catppuccin/catppuccin/blob/main/docs/style-guide.md
@import "latte";

$body-background-color: $white;
$body-heading-color: $subtext1;
$body-text-color: $text;
$link-color: $sapphire;
$nav-child-link-color: $sapphire;
$sidebar-color: $base;
$base-button-color: $white;
$btn-primary-color: $overlay0;
$code-background-color: $text;
$table-background-color: $white;
$search-background-color: $white;
$search-result-preview-color: $crust;
15 changes: 15 additions & 0 deletions docs/_sass/color_schemes/catppuccin_mocha.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Style recommendations: https://github.com/catppuccin/catppuccin/blob/main/docs/style-guide.md
@import "mocha";

$body-background-color: $base;
$body-heading-color: $subtext1;
$body-text-color: $text;
$link-color: $sapphire;
$nav-child-link-color: $sapphire;
$sidebar-color: $mantle;
$base-button-color: #f7f7f7;
$btn-primary-color: $overlay0;
$code-background-color: $text;
$table-background-color: $base;
$search-background-color: $base;
$search-result-preview-color: $crust;
19 changes: 0 additions & 19 deletions docs/_sass/color_schemes/custom-dark.scss

This file was deleted.

18 changes: 0 additions & 18 deletions docs/_sass/color_schemes/custom-light.scss

This file was deleted.

19 changes: 0 additions & 19 deletions docs/_sass/color_schemes/dark.scss

This file was deleted.

17 changes: 0 additions & 17 deletions docs/_sass/color_schemes/light.scss

This file was deleted.

8 changes: 7 additions & 1 deletion docs/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@
// To do this, put your styles in the file _sass/custom/custom.scss
// This will allow for all overrides to be kept in a single file, and for any upstream changes to still be applied

// General theme components



// Unique structures
.callout-toby {
background-color: #F8F8F0;
border-left: 5px solid #66D9EF;
border-radius: 5px; // rounded edge
padding: 0.5rem; // left side padding
margin-top: .4rem;
margin-bottom: .4rem;
}
}


2 changes: 1 addition & 1 deletion docs/_sections/_guide-general/rulebook.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: page
layout: default
title: Rulebook
nav_include: true
nav_order: 3
Expand Down
22 changes: 22 additions & 0 deletions docs/node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions docs/node_modules/@catppuccin/palette/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 948bb43

Please sign in to comment.