JEKYLL
Website: https://in-tech-gration.github.io/WDX-180/
The following files and folders are part of the Jekyll static site generator used by GitHub Pages to build our main website:
.
├── curriculum
├── README.md
├── _config.yml
├── _offline.yml
└── assets
├── WDX.Header.Alternative.jpg
├── WDX.Header.jpg
├── css
└── jekyll
- offline.yml is used to build a local GitHub Pages site, excluding some folders that are not needed for offline usage by the students
"By default, Jekyll doesn't build files or folders that:
are located in a folder called
/node_modules
or/vendor
start with _, ., or #
end with ~
are excluded by the exclude setting in your configuration file
If you want Jekyll to process any of these files, you can use the include setting in your configuration file. (_config.yml)
Edit the following file:
assets/jekyll/css/style.scss
Edit the following files:
assets/jekyll/_layouts/default.html
(Main HTML file)assets/jekyll/_includes/
(Includes)
Q: How do I load a CSS file in a particular markdown file?
A: You will need to add the CSS filenames in a Frontmatter property named load_css
, for example:
---
load_css:
- typography.css
- libs/tagify.min.css
---
# Markdown content here...
The css files (e.g. typography.css
and tagify.min.css
from the example above) must be placed inside the assets/jekyll/css/
folder.
How to include JS:
A: You will need to include the JS filename in a Front matter property named load_script_js
:
The JS files must be placed inside assets/jekyll/_includes/
. If this is a JS library it must be placed inside assets/jekyll/_includes/libs/
.
---
load_script_js:
- setup_faq.js
- app.js
---
# Markdown content here...
The JS files must be placed in the assets/jekyll/_includes/
folder.
The code that injects both CSS and JS inside Jekyll-generated files can be found at the bottom of this template: assets/jekyll/_layouts/default.html
Markdown for GitHub Pages (Kramdown) supports links that open in a new Tab:
[Link](URL){:target="_blank"}
You can create a VSCode snippet:
"WDX:Kramdown target _blank": {
"prefix": "_blank",
"body": [
"{:target=\"_blank\"}"
],
"description": "SGEN:Kramdown target _blank"
},
Just include a .nojekyll
file in the repo.
-
Follow the instructions on installing Jekyll:
-
Create a
Gemfile
:
source "https://rubygems.org"
gem 'github-pages', group: :jekyll_plugins
gem "webrick", "~> 1.8"
# gem 'github-pages'
# gem "jekyll-readme-index", "~> 0.3.0"
# gem "jekyll-theme-midnight", "= 0.2.0"
# gem "jekyll-sass-converter", "= 1.5.2"
- Run:
bundle add webrick
bundle install
bundle exec jekyll _3.9.3_ serve
- or
npm run build:jekyll
REFERENCES:
- https://github.com/github/pages-gem
- https://github.com/github/pages-gem
- https://github.com/orgs/community/discussions/37669
- https://pages.github.com/versions/
![](./assets/image.jpg){:style="width:100%"}
Instructions: https://in-tech-gration.github.io/WDX-180/curriculum/features/flems/
Related Assets:
- /assets/js/flems/flems_init.js
- /assets/jekyll/css/style.scss (Check: // FLEMS CODE SECTIONS)
- /assets/js/flems/flems.html
Just add the following <script>
:
<script src="https://utteranc.es/client.js"
repo="in-tech-gration/WDX-180"
issue-term="pathname"
theme="github-dark"
crossorigin="anonymous"
async>
</script>
This is a tool that helps instructors and mentors track their students' progress.
To launch the tool:
npm install
inside thetools/instructor
folder.npm run cockpit
Tech Specs:
- Express.js (backend)
- JavaScript (frontend)
Configuration:
You first need to create one or more yaml
files inside the teaching/cohorts/
folder which must contain a list of students. For a sample yaml
file check /teaching/cohort.yaml.sample
.
IMPORTANT: You should keep the /teaching/cohorts/
folder in .gitignore
and never push it on GitHub.
This is a Next.js project bootstrapped with create-next-app
.
The Next.js project (now) lives inside the npm-run-learn branch
The following files and folders are part of the Next.js Application:
├── NEXTJS.README.md
├── app/
├── components/
├── next-env.d.ts
├── next.config.js
├── package-lock.json
├── package.json
├── postcss.config.js
├── public/
├── tailwind.config.js
└── tsconfig.json
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!