Skip to content

abnerbog/gitbook-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title
README
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>

gitbook-boilerplate-netlify-cms

Netlify GitHub Contributor Covenant

Gitbook boilerplate integrated with Netlify CMS, powered by Demo Macro.

Manual start

Fork on Github

More info: GitBook Toolchain Documentation

Deploy to Netlify

More info: A Step-by-Step Guide: GitBook on Netlify

Enable Identity and Git Gateway

Netlify's Identity and Git Gateway services allow you to manage CMS admin users for your site without requiring them to have an account with your Git host or commit access on your repo. From your site dashboard on Netlify:

  1. Go to Settings > Identity, and select Enable Identity service.
  2. Under Registration preferences, select Open or Invite only. In most cases, you want only invited users to access your CMS, but if you're just experimenting, you can leave it open for convenience.
  3. If you'd like to allow one-click login with services like Google and GitHub, check the boxes next to the services you'd like to use, under External providers.
  4. Scroll down to Services > Git Gateway, and click Enable Git Gateway. This authenticates with your Git host and generates an API access token. In this case, we're leaving the Roles field blank, which means any logged in user may access the CMS.

More info: Git Gateway

Congratulations

You can now manage the content of your website at https://yoursite.netlify.com/admin/.

License

MIT © Demo Macro

<script> if (window.netlifyIdentity) { window.netlifyIdentity.on("init", user => { if (!user) { window.netlifyIdentity.on("login", () => { document.location.href = "/admin/"; }); } }); } </script>

About

Gitbook boilerplate integrated with Netlify CMS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%