• This repository has been archived on 05/Dec/2022
  • Stars
    star
    243
  • Rank 160,178 (Top 4 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A documentation theme for the Hexo blog framework

hexo-theme-doc

License: MIT dependencies Status Codacy Badge Codacy Badge Build Status npm version

LiveDemo: https://zalando-incubator.github.io/hexo-theme-doc

hexo-theme-doc is a documentation theme for Hexo, the fast and powerful blog framework powered by Node.js. It differs from other Hexo themes by allowing you to present documentation—especially REST API documentation.

Created by JavaScript/Node.js developers, hexo-theme-doc capitalizes on Hexo's extensibility and system of plugins for adding custom tags, customizing layouts, and processing multiple kinds of sources, which makes generating static websites simpler than other tools.

hexo-theme-doc's features include:

  • A clean and responsive layout
  • Search
  • Swagger integration
  • Simple, configurable navigation, including for Tables of Contents
  • Google Analytics
  • Customizable logo and favicon

Visit our demo to view an example of hexo-theme-doc in action.

Theme Mockup

Table of Contents

Get Started

Our step-by-step guide aims to get you running with hexo-theme-doc in five minutes or less.

For a deeper dive, check our user documentation.

Feature Roadmap

hexo-theme-doc is currently in development at Zalando and useful out-of-the-box to others. We welcome suggestions/feedback and contributions, especially on these planned features:

  • More sophisticated control over navigation/automatic filesystem-based navigation (community feedback priority)
  • Swagger to HTML (this feature is in beta phase)
    • Make implementation more robust, and covering all edge cases (development priority)
    • Support for Swagger 3.0
    • Ability to fetch Swagger files from remote locations
    • Ability to provide request/response examples in an external file
    • Exclusion of APIs/operations from output
    • Markdown content support

For more info on our progress, visit the changelog contributions.

Contributing

There are many ways to contribute to hexo-theme-doc:

  • give a github star to the project
  • create github issues and help us to find bugs and/or request features.
  • contribute to the source code

Please check our CONTRIBUTING guidelines.

Development

To get started with hexo-theme-doc development, you need to install NodeJS and Git. Then install hexo-cli globally:

$ npm install hexo-cli -g

Get the theme source and install the dependencies:

$ git clone [email protected]:zalando-incubator/hexo-theme-doc.git
$ cd hexo-theme-doc && npm install

Ensure that you can successfully run test and linting tasks:

$ npm run test && npm run lint

If you want to update the visual aspects of your front-end, we suggest using our user documentation site as a playground for previewing your changes. First, link the theme package globally with:

$ cd hexo-theme-doc && npm link

Then get the user documentation source:

$ git clone [email protected]:zalando-incubator/hexo-theme-doc.git hexo-theme-doc-site
$ cd hexo-theme-doc-site
$ git fetch --all && git checkout gh-pages-source
$ npm install

The documentation source resides in this repository as well but just on a different branch called: gh-pages-source

Now link the theme package as a dependency (this will use your local version):

$ npm link hexo-theme-doc

Finally run the built-in server:

$ hexo s

Open your browser at http://localhost:4000, and hopefully you'll see the documentation site up and running.

Test

Run tests with Facebook's Jest (currently the only testing tool compatible with hexo-theme-doc):

$ npm run test

To generate coverage reports run:

$ npm run test:coverage

Reports are generated at target/coverage.Sometimes you'll only need to run one test suite focused on a single problem; do that by running:

$ npm run test -- <regexp>

<regexp> represents a Regular Expression, matching test file path(s)—eg. npm run jest -- search*.

Lint

Lint the code using ESLint (currently the only linting tool compatible with hexo-theme-doc):

$ npm run lint

To apply automatic fixes to your code, run it with the --fix option:

$ npm run lint --fix

Compile

Use Webpack and node-sass to compile your JavaScript source and style source for the browser:

$ npm run compile

!!! ALWAYS !!! compile and commit distribution artifacts after updating Javascript and/or SCSS files.

Release (recommended workflow)

Only the maintainers** perform releases. Our preferred workflow:

  1. Bump version in package.json
  2. Run npm run prerelease
  3. Commit and push
  4. Open a PR
  5. When PR is merged, tag and push

Credits

License

MIT license with exceptions. See the full license for details.

Copyright 2017, Zalando SE

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

graphql-jit

GraphQL execution using a JIT compiler
TypeScript
1,027
star
2

kopf

A Python framework to write Kubernetes operators in just few lines of code.
Python
971
star
3

kubernetes-on-aws

Deploying Kubernetes on AWS with CloudFormation and Ubuntu
Go
614
star
4

kube-metrics-adapter

General purpose metrics adapter for Kubernetes HPA metrics
Go
482
star
5

kube-ingress-aws-controller

Configures AWS Load Balancers according to Kubernetes Ingress resources
Go
374
star
6

es-operator

Kubernetes Operator for Elasticsearch
Go
351
star
7

cluster-lifecycle-manager

Cluster Lifecycle Manager (CLM) to provision and update multiple Kubernetes clusters
Go
227
star
8

docker-locust

Docker image for the Locust.io open source load testing tool
Python
201
star
9

remora

Kafka consumer lag-checking application for monitoring, written in Scala and Akka HTTP; a wrap around the Kafka consumer group command. Integrations with Cloudwatch and Datadog. Authentication recently added
Scala
197
star
10

stackset-controller

Opinionated StackSet resource for managing application life cycle and traffic switching in Kubernetes
Go
168
star
11

tessellate

Server-side React render service.
JavaScript
152
star
12

kube-aws-iam-controller

Distribute different AWS IAM credentials to different pods in Kubernetes via secrets.
Go
152
star
13

transformer

A tool to transform/convert web browser sessions (HAR files) into Locust load testing scenarios (locustfile).
Python
98
star
14

bro-q

Chrome Extension for JSON formatting and jq filtering in your browser.
TypeScript
83
star
15

spark-json-schema

JSON schema parser for Apache Spark
Scala
79
star
16

catwatch

A metrics dashboard for GitHub organizations, with results accessible via REST API
Java
59
star
17

authmosphere

A library to support OAuth2 workflows in JavaScript projects
TypeScript
54
star
18

flatjson

A fast JSON parser (and builder)
Java
45
star
19

banknote

A simple JavaScript libary for formatting currency amounts according to Unicode CLDR standards
JavaScript
45
star
20

perron

A sane node.js client for web services
JavaScript
43
star
21

zelt

A command-line tool for orchestrating the deployment of Locust in Kubernetes.
Python
36
star
22

hexo-theme-doc-seed

skeleton structure for a documentation website using Hexo and the hexo-doc-theme
29
star
23

kubernetes-log-watcher

Kubernetes log watcher for Scalyr and AppDynamics
Python
27
star
24

new-project

Template to use when creating a new open source project. It comes with all the standard files which there is expected to be in an open source project on Github.
23
star
25

darty

Data dependency manager
Python
22
star
26

chisel

⚒️ collection of awesome practices for putting things on pedestal
Clojure
20
star
27

fabric-gateway

An API Gateway built on the Skipper Ingress Controller https://github.com/zalando/skipper
Scala
17
star
28

roadblock

A node.js application for pulling github organisation statistics into a database.
JavaScript
16
star
29

ember-dressy-table

An ember addon for dynamic tables
JavaScript
10
star
30

zalando.github.io-dev

The zalando.github.io open-source metrics dashboard
JavaScript
10
star
31

atlas-js-core

JavaScript SDK Core for Zalando Checkout, Guest Checkout, and Catalog APIs
JavaScript
9
star
32

opentracing-sqs-java

An attempt at a simple SQS helper library for OpenTracing support.
Java
8
star
33

clin

Cli for Nakadi for event types and subscriptions management
Python
7
star
34

play-etcd-watcher

Instantaneous etcd directory listener for Scala Play
Scala
6
star
35

Zincr

Zincr is a Github bot built with Probot to enforce approvals, specification and licensing checks
TypeScript
5
star
36

jzon

Apis for working with json
Java
5
star
37

Trafficlight

Node.js CLI for creating and migrating Github projects, ensuring that it follows a consistent model for permissions, teams and boilerplate files.
JavaScript
1
star