Skip to content

Commit

Permalink
config fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bamr87 committed Jun 12, 2024
1 parent 86815f3 commit 83dd125
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 26 deletions.
18 changes: 6 additions & 12 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@

founder : "Amr Abdel-Motaleb"
remote_theme : "bamr87/zer0-mistakes"
theme : "jekyll-theme-zer0"

### Github Information
## Github Information
github_user : &github_user "bamr87"
repository_name : &github_repository "it-journey"
repository : [*github_user, "/", *github_repository] # GitHub username/repo-name
Expand Down Expand Up @@ -84,7 +85,7 @@ locale : "en-US"
home_dir : &home '/Users/bamr87/'
local_git : [ *home, 'github' ]
logo : /assets/images/gravatar-small.png # path of logo image to display in the masthead, e.g. "/assets/images/88x88.png"
logo_link : 'https://www.it-journey.dev'
logo_link : [ *url, *baseurl ] # URL to link the logo to, e.g. "/"

teaser : /assets/images/favicon_gpt_computer_retro.png # path of fallback teaser image, e.g. "/assets/images/500x300.png"
info_banner : /assets/images/info-banner-mountain-wizard.png # path of fallback teaser image, e.g. "/assets/images/500x300.png"
Expand Down Expand Up @@ -189,7 +190,7 @@ plugins:
- jekyll-sitemap
- jekyll-seo-tag
- jekyll-paginate
# - jekyll-algolia
- jekyll-relative-links

## Gisgus Plugin #################################################################

Expand Down Expand Up @@ -266,8 +267,6 @@ paginate_path: "/pages/:num/"

# Defaults https://jekyllrb.com/docs/configuration/front-matter-defaults/

nav-file: '_data/navigation/map.yml'

defaults:
# ALL
-
Expand Down Expand Up @@ -324,7 +323,7 @@ defaults:
sidebar:
nav: quickstart

# _posts
# pages/_posts
-
scope:
path: pages/_posts
Expand Down Expand Up @@ -428,9 +427,6 @@ algolia:
search_only_api_key: '3b9200e21085fbebc263950c157b2682'
index_name: dev_it-journey

atom_feed:
path : # blank (default) uses feed.xml

## Style Settings -------------------------------------------------------------

# theme : "zer0-mistakes-jekyll"
Expand All @@ -440,8 +436,6 @@ theme_skin : "dark" # "air", "aqua", "contrast", "dark", "dirt", "
# style : "default" # "default", "dark", "light", "solarized-dark", "solarized-light"
# remote_style : "bamr87/zer0-mistakes"



theme_color:
main: #007bff
secondary: #6c757d
Expand Down Expand Up @@ -470,7 +464,7 @@ theme_color:
## Copyright Settings --------------------------------------------------------------

cr_year: 2024
cr_entity: "Amr"
cr_entity: *name
cr_lisense: "MIT"

## Sitemap Settings --------------------------------------------------------------
Expand Down
15 changes: 10 additions & 5 deletions script/zer0.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ brew install git
brew install gh
brew install --cask docker
brew install --cask visual-studio-code
# Or use the following to set the environment variables
# Or enter them in the terminal

echo "Please enter your GitHub username:"
read GHUSER
export GHUSER

echo "Please enter your Git repository name:"
read GIT_REPO
export GIT_REPO
export GITHOME=~/github
export GHUSER=bamr87
export GIT_REPO=zer0-mistakes
export ZREPO=$GITHOME/$GIT_REPO
# Confirm the environment variables by echoing them and logging them to a file

Expand Down Expand Up @@ -62,12 +67,12 @@ touch Gemfile
echo 'source "https://rubygems.org"' >> Gemfile
echo "gem 'github-pages' , '231'" >> Gemfile
echo "gem 'jekyll' , '3.9.5'" >> Gemfile
echo "gem 'jekyll-theme-zer0' , '0.1.2'" >> Gemfile
echo "gem 'jekyll-theme-zer0'" >> Gemfile
echo "group :jekyll_plugins do" >> Gemfile
echo " gem 'jekyll-feed', \"~> 0.17\"" >> Gemfile
echo " gem 'jekyll-sitemap' , \"~> 1.4.0\"" >> Gemfile
echo " gem 'jekyll-seo-tag', \"~> 2.8.0\"" >> Gemfile
echo " gem 'jekyll-paginate', \"'~> 1.1'\"" >> Gemfile
echo " gem 'jekyll-paginate', \"~> 1.1\"" >> Gemfile
echo "end" >> Gemfile
# Download the _config.yml file from the jekyll-theme-zer0 repo

Expand Down
26 changes: 17 additions & 9 deletions zer0.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,19 @@ brew install --cask visual-studio-code
### Or use default

```shell
# Or use the following to set the environment variables
# Or enter them in the terminal

echo "Please enter your GitHub username:"
read GHUSER
export GHUSER

echo "Please enter your Git repository name:"
read GIT_REPO
export GIT_REPO
```

```shell
export GITHOME=~/github
export GHUSER=bamr87
export GIT_REPO=zer0-mistakes
export ZREPO=$GITHOME/$GIT_REPO
```

Expand Down Expand Up @@ -228,14 +236,14 @@ touch Gemfile

# Write the non-commented lines to the Gemfile
echo 'source "https://rubygems.org"' >> Gemfile
echo "gem 'github-pages' , '231'" >> Gemfile
echo "gem 'jekyll' , '3.9.5'" >> Gemfile
echo "gem 'jekyll-theme-zer0' , '0.1.2'" >> Gemfile
echo "gem 'github-pages'" >> Gemfile
echo "gem 'jekyll-theme-zer0'" >> Gemfile
echo "group :jekyll_plugins do" >> Gemfile
echo " gem 'jekyll-remote-theme', \"~> 0.4.3\"" >> Gemfile
echo " gem 'jekyll-feed', \"~> 0.17\"" >> Gemfile
echo " gem 'jekyll-sitemap' , \"~> 1.4.0\"" >> Gemfile
echo " gem 'jekyll-seo-tag', \"~> 2.8.0\"" >> Gemfile
echo " gem 'jekyll-paginate', \"'~> 1.1'\"" >> Gemfile
echo " gem 'jekyll-paginate', \"~> 1.1\"" >> Gemfile
echo "end" >> Gemfile
```

Expand Down Expand Up @@ -268,7 +276,7 @@ echo "RUN bundle update" >> Dockerfile
echo "RUN bundle install" >> Dockerfile
echo "RUN bundle clean --force" >> Dockerfile
echo "EXPOSE 4000" >> Dockerfile
echo 'CMD ["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0"]' >> Dockerfile
echo 'CMD ["bundle", "exec", "jekyll", "serve", "--verbose", "--host", "0.0.0.0"]' >> Dockerfile
```

```shell
Expand Down Expand Up @@ -339,6 +347,6 @@ convert_md_to_files('zer0.md')

## Scripts

```shell
```bash
{% include_relative script/zer0.sh %}
```

0 comments on commit 83dd125

Please sign in to comment.