Giter VIP home page Giter VIP logo

docs.cucumber.io's Introduction

Cucumber Documentation

This repository contains the source code for the Cucumber Documentation website. It is currently live at https://cucumber.netlify.com, and the plan is to move it to https://docs.cucumber.io once it is good enough to replace the existing documentation.

Please make ALL contributions to the documentation in docs.cucumber.io.

Current status

We are working to add and update all of the old documentation (see below) to this repo.

All relevant documentation from the old documentation has been added to this project. Some files have been deleted; this does not necessarily mean that those files should not exist, just that there was not enough info there to justify leaving them.

This work is currently being done and has been merged to master.

Old documentation

For various reasons, old Cucumber documentation is scattered around different places:

The goal is to move the documentation to this repo.

When the new website is ready to go live, we should replace contents on old pages with a link and/or redirect to the new location, so that external links to the old documentation remain useful.

Contributing Content

The easiest way to contribute content is to add or modify content in the Netlify CMS.

Alternatively, you can clone this repo and edit Markdown files in a text editor on your local machine

Working locally

If you want to modify layout, or prefer to work in a text editor you need to install some software.

Get the source code

git clone https://github.com/cucumber/docs.cucumber.io.git
cd docs.cucumber.io

Install the software (OS X)

The site is built with Hugo. Install it:

brew install git hugo

Hugo uses Pygments for syntax highlighting. Installing Pygments is optional - if you don't have it, code won't be highlighted.

pip install Pygments

Run the site locally

Start the server:

hugo server

Open a browser:

http://localhost:1313

Modify content

Edit Markdown files under in the content directory.

Whenever you make a change to the content, the server will automatically rebuild the site (in a few milliseconds) and tell the browser to reload (using a WebSocket).

Modify theme

Edit files under themes/cucumber-hugo. Changes to the CSS should be made in themes/cucumber-hugo/static/css/cucumber.sass.

If you make changes to the sass, it will be rebuilt if you run the following:

cd themes/cucumber-hugo
yarn        # install dependencies
yarn build  # rebuild cucumber.css

A rebuild of the CSS will trigger a reload of the browser, just like with content.

Architecture

The site is built with Hugo, a fast static site generator.

We have a custom-built theme for the site in themes/cucumber-hugo. This theme is based on Bulma - a lightweight CSS framework.

The online site is rebuild automatically whenever the git repository receives new commits, either via a git push, or by modifying contents in the CMS.

The Netlify CMS saves contents straight to GitHub using the GitHub API.

We might experiment with other CMS systems if Netlify CMS doesn't fit with our workflow.

Continuous Deployment

GitHub will notify Netlify for every git push thanks to a webhook.

Netlify will then build the site deploy it if the build is successful.

The build will check for broken links and other problems. Internal and external links are checked by HTMLProofer. Occasionally, the build will fail due to external links being unavailable or giving a timeout. When that happens, please check if these external links are available and if so, 'Retry build' on Netlify.

Build notifications are sent to the #bots-website Slack channel. See https://cucumber.io/support for details on how to access Slack.

docs.cucumber.io's People

Contributors

mlvandijk avatar plaindocs avatar aslakhellesoy avatar zearin avatar rebekahlawrence avatar olleolleolle avatar tsundberg avatar flaburgan avatar mxygem avatar goatlady avatar mgundala avatar

Watchers

James Cloos avatar IBusinge 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.