GithubHelp home page GithubHelp logo

gauravsarkar / hugo-netlify-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cncf/hugo-netlify-starter

1.0 1.0 0.0 393 KB

Static site boilerplate for CNCF projects

Home Page: https://cncf-hugo-starter.netlify.com

Makefile 2.33% HTML 75.51% JavaScript 2.34% Sass 19.82%

hugo-netlify-starter's Introduction

CNCF Hugo Starter

This repository contains a boilerplate static site generator setup for creating CNCF documentation projects. We strongly recommend using this setup (it helps us help you and your project!), but none of the technologies in the stack are strictly required.

The starter uses the following:

Running locally

Make sure you have npm and yarn installed. Clone this repository and run the following two commands in its directory:

# Install npm assets (just Bulma for Sass/CSS)
yarn

# Run the server locally
make serve

Running on Netlify

Netlify is a CI/CD build tool and hosting solution for (among other things) static sites. We strongly recommend using Netlify unless you have a good reason not to.

This repository comes with a pre-configured netlify.toml file. To build to Netlify:

  1. Go to netlify.com and sign up. We recommend signing up using a GitHub account.
  2. Click New Site from Git, and give Netlify access to your GitHub account.

Note: For projects with lots of contributors, it can be handy to create a general/bot account instead of granting access with a personal account.

  1. Install Netlify with access to your documentation site repository.
  2. Leave all other settings as default and click Deploy Site.

What's included

This repository has two layouts with minimal styling, all stored under /layouts/_default:

  • A homepage template, a basic homepage which uses the following:
    • The index.html file and partials in the /partials/home directory
    • Some helpers in the /assets/sass/helpers.sass file
  • A docs template, a basic content page with submenu which uses the following:
    • The single.html file and partials in the /partials/docs directory
    • Classes in the /assets/sass/helpers.sass and /assets/sass/_docs.sass files

Both use default components and styling from the Bootstrap CSS framework. No menus are structured, because menu structure is highly dependent on the nature of the project.

hugo-netlify-starter's People

Contributors

celestehorgan avatar lucperkins avatar nate-double-u avatar

Stargazers

Gaurav Sarkar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.