GithubHelp home page GithubHelp logo

fredericksilva / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chriswren/docs

0.0 2.0 0.0 5.27 MB

Sauce Labs markdown docs

Home Page: https://docs.saucelabs.com/

License: Apache License 2.0

JavaScript 100.00%

docs's Introduction

Sauce Labs Docs

This repo contains the markdown documentation for Sauce Labs. To learn about how the system works, check out this blog post.

Build Status Build status

Editing Markdown

Every markdown document in the markdown folder of this repo has a required metadata section which should be valid a JavaScript object containing the title(used in the nav, title section, URL, search results, and as part of the naming conventions below), description(used in the meta description), category(used in the nav, URL and as part of the naming conventions), and the index(used to determine the document's position in the navigation relative to other documents in the same category). You can also optionally include an image(used in the nav, search results, and title section on the doc's page) or libraries(used to determine the list of libraries the specific doc page relies on). The supported version of markdown is GitHub flavored markdown as described here.

Naming conventions

All markdown file names should be lowercase, dasherized, and be placed inside the corresponding category folder. For example a doc with the category Tutorials entitled Sample Tutorial would be located at markdown/tutorials/sample-tutorial.md. Images relating to docs are found in the same relative location as markdown files. A main doc image for Sample Tutorial would be located at images/tutorials/sample-tutorial.png while an image in the content of the doc would be located at images/tutorials/sample-tutorial/content-image.png.

Custom Markdown processing

Any code block containing sauceUsername or sauceAccessKey will either get replaced by the logged-in user's credentials or be replaced by YOUR_USERNAME, and YOUR_ACCESS_KEY respectively. If the user is logged out, there will be a button present when hovering over code blocks prompting the user to login. Additionally, code blocks with a programming language defined will have a button present on hover to allow users to copy code to their clipboard.

Linkable heading tags

Each heading tag is turned into a fragment identifier so that users can link into sections within docs. Because of this, be wary of changing section headings because you might break linking between docs.

Running tests locally

To run the tests locally, first clone the repo:

git clone https://github.com/saucelabs/docs.git && cd docs

Then run the following command to install the local node.js dependencies:

npm install

Note: this assumes you have node.js installed.

If you don't have Grunt installed, run the following to command to install it globally:

npm install -g grunt-cli

Now you can test your changes by running the following command:

npm test

Non-dev contributors

Work should be done in branches so that it can be reviewed before being deployed. Follow the below instructions to improve the docs without using the command line:

  1. Download GitHub for Mac or Windows.
  2. Click Clone in Desktop in the right nav of this repo above.
  3. Make a branch from master.
  4. Make changes.
  5. Push branch changes

When you have a new set of changes, change back to the master branch, sync it, then start at #3 above. The goal is to have branches be a short-lived related set of changes. Feel free to make many small branches!

docs's People

Contributors

bellkev avatar bernii avatar borets avatar brianadams avatar christian-bromann avatar chriswren avatar colinsauce avatar dbruning avatar dylanlacey avatar jeansandberg avatar jjups avatar jlipps avatar jonahss avatar josephl avatar jraczak avatar laurenqn avatar ldx avatar michaelbredman avatar neilgoldman avatar okuryu avatar riyamodi avatar rossrowe avatar rsantillan avatar ryankirkman avatar sah avatar santiycr avatar saucyallison avatar senhorcastor avatar siemiatj avatar thecampbell avatar

Watchers

 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.