All Projects → tighten → jigsaw-docs-template

tighten / jigsaw-docs-template

Licence: MIT license
Starter template for a documentation site, using Jigsaw by Tighten

Programming Languages

Blade
752 projects
SCSS
7915 projects
PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to jigsaw-docs-template

jigsaw-blog-template
Starter template for a blog, using Jigsaw by Tighten
Stars: ✭ 75 (+92.31%)
Mutual labels:  static-site-generator, blade, static-site, jigsaw, tailwindcss
Jigsaw
Simple static sites with Laravel’s Blade.
Stars: ✭ 1,823 (+4574.36%)
Mutual labels:  static-site-generator, blade, jigsaw
Gridsome Portfolio Starter
A simple portfolio theme for Gridsome powered by Tailwind CSS v1
Stars: ✭ 329 (+743.59%)
Mutual labels:  static-site-generator, static-site, tailwindcss
sistine
A simple, flexible, productive static site generator written entirely in Ink
Stars: ✭ 17 (-56.41%)
Mutual labels:  static-site-generator, static-site
nene
Nēnē: A no-frills static site generator
Stars: ✭ 22 (-43.59%)
Mutual labels:  static-site-generator, static-site
pokedex-nextjs
Get to know the different render methods that the Next.js framework provides by exploring Pokemons
Stars: ✭ 39 (+0%)
Mutual labels:  static-site-generator, static-site
vscode-front-matter
Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...
Stars: ✭ 962 (+2366.67%)
Mutual labels:  static-site-generator, static-site
neofeed-theme
A personal feed for Neocities, GitHub Pages, or anywhere else, built with Hugo. #IndieWeb friendly and all yours. It's better than Twitter.
Stars: ✭ 62 (+58.97%)
Mutual labels:  static-site-generator, static-site
Kotsu
✨ Clean, opinionated foundation for new projects — to boldly go where no man has gone before
Stars: ✭ 48 (+23.08%)
Mutual labels:  static-site-generator, static-site
oliverbenns.com
oliverbenns.com
Stars: ✭ 51 (+30.77%)
Mutual labels:  static-site-generator, static-site
Blended
The Most Versatile Static HTML Site Generator
Stars: ✭ 22 (-43.59%)
Mutual labels:  static-site-generator, static-site
urlzap
⚡️ Your own static URL shortener
Stars: ✭ 57 (+46.15%)
Mutual labels:  static-site-generator, static-site
readme-in-static-site
💎 Transform and insert your GitHub readme in your static site.
Stars: ✭ 24 (-38.46%)
Mutual labels:  static-site-generator, static-site
mpa-frontend-template
🔥 Template based on webpack, pug, stylus, es6, postcss for multi page applications
Stars: ✭ 27 (-30.77%)
Mutual labels:  static-site-generator, static-site
presta
Minimalist serverless framework for SSR, SSG, serverless APIs and more.
Stars: ✭ 89 (+128.21%)
Mutual labels:  static-site-generator, static-site
hyperdraft
Turn your notes into a website.
Stars: ✭ 59 (+51.28%)
Mutual labels:  static-site-generator, static-site
front-matter-manipulator
A utility for parsing and manipulating documents with Front Matter
Stars: ✭ 25 (-35.9%)
Mutual labels:  static-site-generator, static-site
awesome-astro
Curated resources on building sites with Astro, a brand new way to build static and server rendered sites, with cross-framework components, styling and reactive store support.
Stars: ✭ 210 (+438.46%)
Mutual labels:  static-site-generator, static-site
wordpress-scaffold
The scaffold for GRRR's WordPress Pro setup.
Stars: ✭ 16 (-58.97%)
Mutual labels:  static-site-generator, static-site
Elegant
Best theme for Pelican Static Blog Generator
Stars: ✭ 241 (+517.95%)
Mutual labels:  static-site-generator, static-site

Jigsaw Docs Starter Template

This is a starter template for creating a beautiful, customizable documentation site for your project with minimal effort. You’ll only have to change a few settings and you’re ready to go.

View a preview of the docs template.

Installation

After installing Jigsaw, run the following command from your project directory:

./vendor/bin/jigsaw init docs

This starter template includes samples of common page types, and comes pre-configured with:

  • A fully responsive navigation bar
  • A sidebar navigation menu
  • Tailwind CSS, a utility CSS framework that allows you to customize your design without touching a line of CSS
  • Purgecss to remove unused selectors from your CSS, resulting in smaller CSS files
  • Syntax highlighting using highlight.js
  • A script that automatically generates a sitemap.xml file
  • A search bar powered by Algolia DocSearch, and instructions on how to get started with their free indexing service
  • A custom 404 page

Docs starter template screenshot


Configuring your new site

As with all Jigsaw sites, configuration settings can be found in config.php; you can update the variables in that file with settings specific to your project. You can also add new configuration variables there to use across your site; take a look at the Jigsaw documentation to learn more.

// config.php
return [
    'baseUrl' => 'https://my-awesome-jigsaw-site.com/',
    'production' => false,
    'siteName' => 'My Site',
    'siteDescription' => 'Give your documentation a boost with Jigsaw.',
    'docsearchApiKey' => '',
    'docsearchIndexName' => '',
    'navigation' => require_once('navigation.php'),
];

Tip: This configuration file is also where you’ll define any "collections" (for example, a collection of the contributors to your site, or a collection of blog posts). Check out the official Jigsaw documentation to learn more.


Adding Content

You can write your content using a variety of file types. By default, this starter template expects your content to be located in the source/docs folder. If you change this, be sure to update the URL references in navigation.php.

The first section of each content page contains a YAML header that specifies how it should be rendered. The title attribute is used to dynamically generate HTML title and OpenGraph tags for each page. The extends attribute defines which parent Blade layout this content file will render with (e.g. _layouts.documentation will render with source/_layouts/documentation.blade.php), and the section attribute defines the Blade "section" that expects this content to be placed into it.

---
title: Navigation
description: Building a navigation menu for your site
extends: _layouts.documentation
section: content
---

Read more about Jigsaw layouts.


Adding Assets

Any assets that need to be compiled (such as JavaScript, Less, or Sass files) can be added to the source/_assets/ directory, and Laravel Mix will process them when running npm run dev or npm run prod. The processed assets will be stored in /source/assets/build/ (note there is no underscore on this second assets directory).

Then, when Jigsaw builds your site, the entire /source/assets/ directory containing your built files (and any other directories containing static assets, such as images or fonts, that you choose to store there) will be copied to the destination build folders (build_local, on your local machine).

Files that don't require processing (such as images and fonts) can be added directly to /source/assets/.

Read more about compiling assets in Jigsaw using Laravel Mix.


Building Your Site

Now that you’ve edited your configuration variables and know how to customize your styles and content, let’s build the site.

# build static files with Jigsaw
./vendor/bin/jigsaw build

# compile assets with Laravel Mix
# options: dev, prod
npm run dev
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].