Coder Social home page Coder Social logo

k6-docs's Introduction

k6 Documentation

Staging Production

Welcome to the k6 docs! This repo contains the source code of the k6 documentation.

Some key facts:

  • Issues and contributions are always welcome!
  • The docs are written in Markdown, built with Gatsby, and linted with Prettier and Vale.
  • The Contributor's guide has meta-documentation about building locally, using special components and styling, deploying, troubleshooting, and more.
  • We have a Code of conduct.

Contributing

Don't feel shy about contributing! All input is welcome. No fix is too trivial.

If something confuses you or feels lacking about the docs, make an issue. If you find something that you think you can fix, please go ahead. You don't need to ask permission.

Markdown files for the documentation are located in src/data/markdown/docs folder. The URL structure is generated based on the folder structure and file names.

For small changes and spelling fixes, the GitHub UI is most convenient. For larger contributions, consider running the project locally to see how the changes look like before making a pull request. You can build locally with Docker, as described in the following section, or you can use node, as described in the Contributor's Guide

The following docs cover the different stages of the writing workflow:

  • Build locally. For any large changes, being able to view how the site looks live hugely improves writer comfort and doc quality. To build locally, you'll need node and a node version manager.

  • Contributor's reference. The syntax and structure of the page paths, custom style components, program redirects, and so on.

  • Troubleshooting. Unfortunately, things can go wrong. Fortunately, most errors usually share the same few fixes.

  • Preview and deploy. Each PR has a preview. The main branch has two previews, staging (which deploys on merges) and prod (which deploys with version upgrades).

    Only people with qualified permissions can deploy.

Install and run in Docker

This uses docker-compose and port 8100.

git clone [email protected]:grafana/k6-docs.git
cd k6-docs
cp .env.example .env.development

docker-compose  up -d --build

Note that starting up the Docker takes several minutes, during which the website will not be accessible. Use docker-compose logs -f web to track progress.

Then visit http://localhost:8100

If you want to re-run the --build command, you may get an error about not having access to delete a cache/ folder. Use sudo to delete this manually before retrying.

Note: If experience issues when starting the docs locally with Docker, run the commands below to clean up previous executions:

docker-compose rm --stop --force --volumes
docker image rm k6-docs-web:latest

And run again docker-compose up -d --build.

k6-docs's People

Contributors

allansson avatar ankur22 avatar codebien avatar den-bratchikov avatar edvinasdaugirdas avatar floord avatar griatch avatar heitortsergent avatar immavalls avatar inancgumus avatar javaducky avatar legander avatar mattdodsonenglish avatar mdcruz avatar mostafa avatar mstoykov avatar na-- avatar nicolevanderhoeven avatar olegbespalov avatar oleiade avatar pablochacin avatar ppcano avatar silencerweb avatar simskij avatar sniku avatar szkiba avatar tom-miseur avatar vi-nastya avatar vmihajlovic avatar yasell 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.