Skip to content

Instantly share code, notes, and snippets.

View MaedahBatool's full-sized avatar
🎯
Building Communities

Maedah Batool MaedahBatool

🎯
Building Communities
View GitHub Profile
@MaedahBatool
MaedahBatool / mkdocs.md
Last active November 19, 2017 16:27
MkDocs Starter!

MkDocs Workflow! 🍒

  1. Run mkdocs new project_name.
  2. Open that folder by cd project_name.
  3. Make a new GitHub repo.
  4. Copy new Git repo instructions (the first one).
  5. Run it in the project root folder.
  6. Run echo "site/" >> .gitignore.
  7. Run gcap 'NEW Project' (gcap` = Git Commit All Push — My personal workflow alias).
  8. Run mkdocs serve
@MaedahBatool
MaedahBatool / pudl-Install-node-npm.js
Last active September 28, 2018 06:46
pudl Configuration Setup!
node -v
# Make sure you have Node >= 8 installed.
npm -v
# Make sure you have npm >= 5.3 installed.
@MaedahBatool
MaedahBatool / pudl-curl-dwnld.sh
Last active October 4, 2018 05:13
pudl Configuration Setup!
curl -L https://git.io/pudlgfl -o "gulpfile.js" && curl -L https://git.io/pudlpkjs -o "package.json" && curl -L https://git.io/pudlgig -o ".gitignore" && curl -L https://git.io/pudlcg -o "config.js"
@MaedahBatool
MaedahBatool / pudl-prjct-var.js
Created September 28, 2018 06:51
pudl Configuration Setup!
// Project Variables.
module.exports = {
viewSrc: './views/**/*.pug',
viewDst: './',
styleSrc: './css/style.scss',
styleDst: './',
outputStyle: 'compressed',
viewWatchFiles: './views/**/*.pug',
styleWatchFiles: './css/**/*.scss',
browserAutoOpen: false,
@MaedahBatool
MaedahBatool / pudl-Install-node-dpnd.js
Last active October 1, 2018 12:25
pudl Configuration Setup!
# For MAC OS X run the following command with super user.
npm install
# For Linux run the following command.
npm install
@MaedahBatool
MaedahBatool / pudl-run-prjct.js
Created September 28, 2018 06:54
pudl Configuration Setup!
# To start pudl
npm start
# To stop pudl press CTRL (⌃) + C
@MaedahBatool
MaedahBatool / pudl-gulpfile.js
Created October 1, 2018 08:51
pudl Gulp file
/**
* Gulpfile.
*
* @author Maedah Batool (https://github.com/maedahbatool)
*/
/**
* Load Config.
*
* Customize your project in the config.js file
@MaedahBatool
MaedahBatool / pudl-config.js
Created October 1, 2018 08:52
pudl Config file
/**
* Configuration.
*
* Project Configuration for gulp tasks.
*
* In paths you can add <<glob or array of globs>>. Edit the variables as per your project requirements.
*/
// Project options.
module.exports = {
@MaedahBatool
MaedahBatool / gatsby-remark-embed-video.js
Created April 4, 2019 09:04
gatsby-remark-embed-video Plugin Working
module.exports = {
siteMetadata: {
title: 'Your Site Title',
siteUrl: 'https://yoursite.com',
},
plugins: [
{
resolve: "gatsby-remark-embed-video",
options: {
width: 800,
@MaedahBatool
MaedahBatool / gatsby-remark-embed-video-usage.md
Last active April 4, 2019 12:21
gatsby-remark-embed-video Plugin Usage

gatsby-remark-embed-video Plugin Usage

video: https://www.youtube.com/embed/2Xc9gXyf2G4 youtube: https://www.youtube.com/watch?v=2Xc9gXyf2G4 youtube: 2Xc9gXyf2G4

vimeo: https://vimeo.com/5299404 vimeo: 5299404

videoPress: https://videopress.com/v/kUJmAcSf