Code Monkey home page Code Monkey logo

website's Introduction

OpenKF's docs

OpenKF's docs are built with hugo, and can be browsed live at https://kind.sigs.k8s.io/

To browse them locally, install hugo and run make serve from this directory.

Read tutorial, learning to use OpenKF document construction

start local server

npm install
npm run start

File Directory Description

Directory Description
archetypes Directory for creating new content files with Hugo command.
assets Directory for storing files that need to be processed by Hugo Pipes.
config Directory for storing configuration directives in JSON, YAML, or TOML format.
content Directory for storing all the content of your website. Each top-level folder is considered a content section.
data Directory for storing configuration files that can be used by Hugo during website generation.
layouts Directory for storing template files specifying how to render content views in the static website.
static Directory for storing all static content such as images, CSS, JavaScript, etc.
resources Directory for caching files to speed up the generation process.

Command

Note๐Ÿ’ก: You can change the commands in the scripts section of ./package.json.

create

Create new content for your site:

npm run create [path] [flags]

See also the Hugo docs: hugo new.

Docs based tree

Create a docs based tree โ€” with a single command:

npm run create -- --kind docs [section]

For example, create a docs based tree named guides:

npm run create -- --kind docs guides

lint

Check scripts, styles, and markdown for errors:

npm run lint

scripts

Check scripts for errors:

npm run lint:scripts [-- --fix]

styles

Check styles for errors:

npm run lint:styles [-- --fix]

markdown

Check markdown for errors:

npm run lint:markdown [-- --fix]

clean

Delete temporary directories:

npm run clean

start

Start local development server:

npm run start

build

Build production website:

npm run build

functions

Build Lambda functions:

npm run build:functions

preview

Build production website including draft and future content:

npm run build:preview

website's People

Contributors

cubxxw avatar kubbot 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.