All Projects → docpad → Docpad Plugin Ghpages

docpad / Docpad Plugin Ghpages

Licence: other
Deploy your DocPad Website to GitHub Pages

Programming Languages

javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects

Projects that are alternatives of or similar to Docpad Plugin Ghpages

Alembic
⚗️ A Jekyll boilerplate theme designed to be a starting point for any Jekyll website
Stars: ✭ 501 (+1013.33%)
Mutual labels:  github-pages
Type Theme
A free and open-source Jekyll theme with responsive design. Great for blogs and easy to customize.
Stars: ✭ 657 (+1360%)
Mutual labels:  github-pages
Offenewahlen website
Website of Offene Wahlen Österreich.
Stars: ✭ 10 (-77.78%)
Mutual labels:  github-pages
Git Directory Deploy
deploy a directory as a git branch
Stars: ✭ 526 (+1068.89%)
Mutual labels:  github-pages
Gulp Gh Pages
A gulp 4 plugin to publish contents to Github pages
Stars: ✭ 611 (+1257.78%)
Mutual labels:  github-pages
Minimal
Minimal is a Jekyll theme for GitHub Pages
Stars: ✭ 753 (+1573.33%)
Mutual labels:  github-pages
Hacker
Hacker is a Jekyll theme for GitHub Pages
Stars: ✭ 458 (+917.78%)
Mutual labels:  github-pages
Chalk
Chalk is a high quality, completely customizable, performant and 100% free Jekyll blog theme.
Stars: ✭ 987 (+2093.33%)
Mutual labels:  github-pages
Wowchemy Hugo Modules
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, build with widgets! 创建在线课程,学术简历或初创网站。
Stars: ✭ 6,093 (+13440%)
Mutual labels:  github-pages
Streetturtle.github.io
Blog
Stars: ✭ 19 (-57.78%)
Mutual labels:  github-pages
Flexible Jekyll
Flexible-Jekyll is a simple and clean theme for Jekyll
Stars: ✭ 531 (+1080%)
Mutual labels:  github-pages
Jekyll Uno
Jekyll-Uno - a minimal, responsive theme for Jekyll based on Uno for Ghost
Stars: ✭ 559 (+1142.22%)
Mutual labels:  github-pages
Jekyll Theme Chirpy
A minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation.
Stars: ✭ 773 (+1617.78%)
Mutual labels:  github-pages
Jekyll Theme Basically Basic
Your new Jekyll default theme
Stars: ✭ 524 (+1064.44%)
Mutual labels:  github-pages
Aviaryan.github.com Retired 2018
My website (retired)
Stars: ✭ 10 (-77.78%)
Mutual labels:  github-pages
Register
Grab your own sweet-looking '.is-a.dev' subdomain
Stars: ✭ 470 (+944.44%)
Mutual labels:  github-pages
Cayman
Cayman is a Jekyll theme for GitHub Pages
Stars: ✭ 719 (+1497.78%)
Mutual labels:  github-pages
Time Machine
Time machine is a Jekyll theme for GitHub Pages
Stars: ✭ 41 (-8.89%)
Mutual labels:  github-pages
Angular Library Starter Kit
Angular 5 Library Starter Kit based on Angular-CLI
Stars: ✭ 35 (-22.22%)
Mutual labels:  github-pages
Boxmls.github.io
GitHub site with documentation, tutorial and general information about Open BoxMLS.
Stars: ✭ 16 (-64.44%)
Mutual labels:  github-pages

GitHub Pages Deployer Plugin for DocPad

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Deploy to Github Pages easily via docpad deploy-ghpages

Usage

Project Pages

This plugin works with GitHub Pages for Projects (e.g. http://username.github.io/project via gh-pages branch on https://github.com/username/project) with no configuration or setup required.

Simply run docpad deploy-ghpages --env static to deploy the contents of your out directory directly to your repository's gh-pages branch.

Profile/Organisation Pages

This plugin also works with GitHub Pages for Profiles and Organisations (e.g. http://username.github.io via master branch on https://github.com/username/username.github.io) via any of the following options:

Two Repositories

Setup one repository called username.github.io which will be your target repository, and one called website which will be your source repository.

Inside your website repository, add the following to your docpad configuration file:

plugins:
	ghpages:
		deployRemote: 'target'
		deployBranch: 'master'

And run the following in terminal:

git remote add target https://github.com/username/username.github.io.git

Then when you run docpad deploy-ghpages --env static inside your website repository, the generated out directory will be pushed up to your target repository's master branch.

Multiple Branches

If you would like to have your source and generated site on the same repository, you can do this by the following.

Move the source of your website to the branch source, and the following to your docpad configuration file:

plugins:
	ghpages:
		deployRemote: 'origin'
		deployBranch: 'master'

Then when you run docpad deploy-ghpages --env static inside your website repository's source branch, the generated out directory will be pushed up to same repository's master branch.

Polluting the Root Directory

The final option is to not use this plugin and have the out directory be your website's root directory, so instead of say your-website/src/documents/index.html being outputted to your-website/out/index.html, instead it will be outputted to you-website/index.html. This is the way Jekyll works, however we don't recommend it as it is very messy and commits the out files into your repository.

To do this, add the following to your docpad configuration file:

outPath: '.'

Custom Domains

If you're using GitHub Pages Custom Domains:

  • Place your CNAME file at src/files/CNAME so it gets copied over to out/CNAME upon generation and consequently to the root of the gh-pages branch upon deployment
  • Use a DocPad version 6.48.1 or higher

Debugging

Depending on circumstances, the github pages plugin might not work and you'll see an error. You can debug this by running the deploy with the -d flag like so docpad deploy-ghpages -d. That will tell you at which step the deploy failed.

  • If the deploy fails fetching the origin remote, it means that you do not have the remote "origin", you will need to add it, or update the deployRemote setting to reflect your desired remote.

  • If the deploy fails on the push to github pages, you may need to specify your username and password within the remote. You can do this by running:

    	``` bash
    	node -e "console.log('https://'+encodeURI('USERNAME')+':'+encodeURI('PASSWORD')+'@github.com/REPO_OWNER/REPO_NAME.git')"
    	```
    
    	Replace the words in capitals with their actual values and press enter. This will then output the new remote URL, you then want to copy it and run `git remote rm origin` and `git remote add origin THE_NEW_URL` and try the deploy again.
    
    	On OSX you may be able to avoid this step by running `git config --global credential.helper osxkeychain` to tell git to save the passwords to the OSX keychain rather than asking for them every single time.
    
  • If you get EPERM or unlink errors, it means that DocPad does not have permission to clean up the git directory that it creates in the out folder. You must clean this up manually yourself by running rm -Rf ./out/.git

Install

Install this DocPad plugin by entering docpad install ghpages into your terminal.

History

Discover the release history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

and licensed under:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].