Skip to content

Instantly share code, notes, and snippets.

@Zenahr
Last active June 13, 2020 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zenahr/2516d4184ccc78e91006a13b08963823 to your computer and use it in GitHub Desktop.
Save Zenahr/2516d4184ccc78e91006a13b08963823 to your computer and use it in GitHub Desktop.
Docusaurus Github Pages personal quick-guide

PUT THIS INTO SiteConfig.js:

const siteConfig = {
  title: 'Personal Laravel Docs and Recipes', // Title for your website.
  tagline: 'A Tagline I guess',
  url: 'https://Zenahr.github.io', // Your website URL
  baseUrl: '/docs-laravel/', // Base URL for your project */
  // For github.io type URLs, you would set the url and baseUrl like:
  //   url: 'https://facebook.github.io',
  //   baseUrl: '/test-site/',

  // Used for publishing and more
  projectName: 'docs-laravel',
  organizationName: 'Zenahr',
  // For top-level user or org sites, the organization is still the same.
  // e.g., for the https://JoelMarcey.github.io site, it would be set like...
  //   organizationName: 'JoelMarcey'

  // For no header links in the top nav bar -> headerLinks: [],

USE THIS IN THE COMMAND LINE:

cmd /C "set GIT_USER=Zenahr && set CURRENT_BRANCH=master && set USE_SSH=true && yarn run publish-gh-pages"

PS: Don't forget to do npm install first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment