Skip to content

Commit

Permalink
Merge pull request #329 from ScriptAutomate/move-docs-directions
Browse files Browse the repository at this point in the history
Docs gen for kitchen-salt didn't belong in tutorial, but in README
  • Loading branch information
ScriptAutomate authored Apr 9, 2021
2 parents a9a98b8 + 34cda93 commit 8b32287
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,27 @@ The provider works by generating a salt-minion config, creating pillars based on

This provisioner is tested with kitchen-docker against CentOS, Ubuntu, and Debian.

## Generate and locally view kitchen-salt docs ##

To view the docs that were originally generated by this repository and hosted by Salt Project, the following should generate a local copy of the documentation.

# Clear any locally generated documentation
rm -rf html/

# Generate HTML documentation of kitchen-salt
bundle install
bundle exec yard doc
firefox html/index.html

# OPTIONAL
# Start a local http server to view the rendered docs
# Accessible via http://localhost:8808/
bundle exec yard server docroot=html/

## Installation and Setup ##

You'll need the test-kitchen and kitchen-salt gem's installed in your system, along with kitchen-vagrant or some other suitable driver for test-kitchen. Please see the [gettingstarted documentation](docs/gettingstarted.md).

To generate more detailed documentation of ruby classes, in an HTML rendered local website for viewing,
please the documentation on how to [Generate and locally view docs](docs/gettingstarted.md#generate-and-locally-view-docs).

## Provisioner Options ##

More details on all the configuration options are in the [provisioner_options documentation](docs/provisioner_options.md).
Expand Down
17 changes: 0 additions & 17 deletions docs/gettingstarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,6 @@ To specify only installing certain groups, use the `--with` and `--without` argu

bundle install --with windows --without docker

## Generate and locally view docs ##

To view the docs that were originally generated by this repository and hosted by Salt Project, the following should generate a local copy of the documentation.

# Clear any locally generated documentation
rm -rf html/

# Generate HTML documentation of kitchen-salt
bundle install
bundle exec yard doc
firefox html/index.html

# OPTIONAL
# Start a local http server to view the rendered docs
# Accessible via http://localhost:8808/
bundle exec yard server docroot=html/

## Setup ##

Now the `.kitchen.yml` file needs to be setup for running tests. The following sections should be copied into the {file:docs/example-kitchen.yml.md} file in the root of the directory for the `wordpress-formula`
Expand Down

0 comments on commit 8b32287

Please sign in to comment.