Code Monkey home page Code Monkey logo

docs.cucumber.io's Introduction

Cucumber Documentation

This repository contains the source code for https://cucumber.io/docs.

Contributing Content

For small edits, the recommended way to contribute is via GitHub. Each page in the documentation will have an Edit link for this purpose.

Working locally

For bigger modifications, the recommended workflow is to edit the documentation locally on your machine, and seeing the results in a web browser.

This involves getting the source code and building the documentation yourself.

Get the source code

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

View the site

The website is built with several tools that are distributed as a Docker image.

Install Docker if you don't already have it on your machine.

Build and serve the website:

./docker_shell.sh

Open a browser:

http://localhost:1313

Changes to the contents will be automatically updated in the browser.

Try editing one of the pages under content and see for yourself!

Build the site and check links

When you are done editing, build the site and check links:

./docker_shell.sh make clean
./docker_shell.sh make
./docker_shell.sh make htmlproofer

By default, external links are only checked in CI (because it takes a while). To check external links locally:

CI=true ./docker_shell.sh make htmlproofer

Links that are broken should be removed or replaced, even if they are only temporarily broken. The reason for this is that broken links negatively affect search engine rankings.

Modify theme

See the theme README

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.

Continuous Deployment

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

Netlify will then build the site and 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.

You can discuss the documentation in the #docs Slack channel. Build notifications are sent to the #bots-docs Slack channel. See https://cucumber.io/support for details on how to access Slack.

docs.cucumber.io's People

Contributors

mlvandijk avatar aslakhellesoy avatar plaindocs avatar zearin avatar olleolleolle avatar mattwynne avatar mpkorstanje avatar luke-hill avatar rebekahlawrence avatar xtrasimplicity avatar anton-314159 avatar mxygem avatar declark avatar annabaker avatar tsundberg avatar nhojpatrick avatar diabolo avatar zutshiy avatar robzenn92 avatar lisacrispin avatar riggs333 avatar tomerpacific avatar selfeki avatar marnen avatar charlierudolph avatar xgirma avatar sabotageandi avatar danascheider avatar iliashkuratov avatar shobika avatar

Stargazers

Qdigital avatar

Watchers

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