- Run
mkdocs new project_name
. - Open that folder by
cd project_name
. - Make a new GitHub repo.
- Copy new Git repo instructions (the first one).
- Run it in the project root folder.
- Run
echo "site/" >> .gitignore
. - Run
gcap 'NEW Project' (
gcap` = Git Commit All Push — My personal workflow alias). - Run
mkdocs serve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -v | |
# Make sure you have Node >= 8 installed. | |
npm -v | |
# Make sure you have npm >= 5.3 installed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Project Variables. | |
module.exports = { | |
viewSrc: './views/**/*.pug', | |
viewDst: './', | |
styleSrc: './css/style.scss', | |
styleDst: './', | |
outputStyle: 'compressed', | |
viewWatchFiles: './views/**/*.pug', | |
styleWatchFiles: './css/**/*.scss', | |
browserAutoOpen: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For MAC OS X run the following command with super user. | |
npm install | |
# For Linux run the following command. | |
npm install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To start pudl | |
npm start | |
# To stop pudl press CTRL (⌃) + C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gulpfile. | |
* | |
* @author Maedah Batool (https://github.com/maedahbatool) | |
*/ | |
/** | |
* Load Config. | |
* | |
* Customize your project in the config.js file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
siteMetadata: { | |
title: 'Your Site Title', | |
siteUrl: 'https://yoursite.com', | |
}, | |
plugins: [ | |
{ | |
resolve: "gatsby-remark-embed-video", | |
options: { | |
width: 800, |
OlderNewer