Skip to content

pvaramballypivot/docs-tiledev

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this repo

This repo is for Tile Developer Guide content only. See the Tile Developer Guide Book Repo for the book that publishes this content.

Which branch to use?

Note: Provide instructions in your PRs to indicate which branches you want Docs to apply your commits to.

Branch name Use for…
master This is the "edge" build, for Ops Mananger v2.11. It publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-n/ and https://docs.pivotal.io/tiledev/2-n
2.10 Ops Manager Tile Dev Guide v2.10 publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-10/ and https://docs.pivotal.io/tiledev/2-10
2.9 Ops Manager Tile Dev Guide v2.9 publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-9/ and https://docs.pivotal.io/tiledev/2-9
2.8 v2.8 publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-8/ and https://docs.pivotal.io/tiledev/2-8
2.7 v2.7 publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-7/ and https://docs.pivotal.io/tiledev/2-7
2.6 v2.6 publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-6/ and https://docs.pivotal.io/tiledev/2-6
2.5 v2.5 publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-5/ and https://docs.pivotal.io/tiledev/2-5
2.4 v2.4 publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-4/ and https://docs.pivotal.io/tiledev/2-4
2.3 v2.3 publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-3/ and https://docs.pivotal.io/tiledev/2-3
2.2 v2.2 publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-2/ and https://docs.pivotal.io/tiledev/2-2
2.1 v2.1 publishes to https://docs-pcf-staging.cfapps.io/tiledev/2-1/ and https://docs.pivotal.io/tiledev/2-1
2.0 NOT IN USE (PDF available at https://docs.pivotal.io/archives/tiledev-guide-2.0.pdf)
1.12 NOT IN USE (PDF available at https://docs.pivotal.io/archives/tiledev-guide-1.12.pdf)

Terminology List

List of terms that we want to use consistently in the doc:

  • The Tile Dashboard–for the UI/product as a whole. For example, "Log in to the Tile Dashboard. [MB 2018.07.11]
  • Tile Dashboard CI–for the subsystem of the Tile Dashboard that does the automated testing. For example, "Tile Dashboard CI runs any post-deploy errands that your tile has defined." [MB 2018.07.11]

VMware Tanzu Services Documentation Template

This template helps VMware Tanzu development teams prepare documentation for VMware Tanzu services that appear on VMware Tanzu Network.

Overview

Every VMware Tanzu service has (or should have) documentation on the main VMware Tanzu documentation site, docs.pivotal.io under VMware Tanzu Services.

How To Use This Template

You can use this template to develop documentation for a new VMware Tanzu service. It includes sections for a Product Snapshot, prerequisites, instructions for installation and use, release notes, license information, and other generally useful and expected documentation.

To begin using this repo to develop your documentation, perform the following steps:

  1. Clone this repo onto your local machine.
  2. Work your way through each topic, replacing the placeholders in ALL-CAPS and following the instructions in bold.
  3. Complete the subnav by replacing the placeholders in ALL-CAPS in the subnav file at book/master_middleman/source/subnavs/service_subnav.erb in this repo.
  4. View your documentation as a live local site in a browser, by following the steps below in the How To Use Bookbinder To View Your Docs section.
  5. When you've finished your documentation, push your docs up to the remote and email the Docs Team at [email protected].

How To Use Bookbinder To View Your Docs

Bookbinder is a command-line utility for stitching Markdown docs into a hostable web app. The VMware Tanzu Docs Team uses Bookbinder to publish our docs site, but you can also use Bookbinder to view a live version of your documentation on your local machine.

Bookbinder draws the content for the site from docs-content, the subnav from docs-book, and various layout configuration and assets from docs-layout.

To use Bookbinder to view your documentation, perform the following steps:

  1. On your local machine, cd into docs-book in the cloned repo.
  2. Run bundle install to make sure you have all the necessary gems installed.
  3. Build your documentation site with bookbinder in one of the two following ways:
    • Run bookbinder watch to build an interactive version of the docs and navigate to localhost:4567/myservice/ in a browser. (It may take a moment for the site to load at first.) This builds a site from your content repo at docs-content, and then watches that repo to update the site if you make any changes to the repo.
    • Run bookbinder bind local to build a Rack web-app of the book. After the bind has completed, cd into the final_app directory and run rackup. Then navigate to localhost:9292/myservice/ in a browser.

Zero to Bookbinder: How to Install Bookbinder and Build, View, and Edit Your Docs from Nothing

If you are reading this, VMware has invited you to a git repo where you can build and edit documentation in the Ruby / Markdown / HTML format that the online publishing tool Bookbinder uses to build VMware Tanzu's documentation.

Here's how to install Bookbinder and build your docs from the repo, starting from scratch, on a Mac OS X machine.

Note: All steps below are implicitly preceded with, "If you haven't already..." You should skip any installation steps that have already contributed to your environment.

Install Ruby

In Terminal window:

  1. Make and cd into a workspace directory.

    $ mkdir workspace

    $ cd workspace

  2. Follow the instructions at http://brew.sh to install brew / homebrew

    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  3. Install your own (non-system) ruby.

    $ brew install ruby

Set up Git

  1. Download and Install git by following the instructions at git-scm.com.

  2. Install your own (non-system) bash-completion (optional).

    $ brew install git bash-completion

  3. If you don't already have one, generate a public/private RSA key pair, and save the key to your ~/.ssh directory.

    $ ssh-keygen
    Generating public/private rsa key pair.
    Enter file in which to save the key (/Users/YOUR-USERID/.ssh/id_rsa):
    
  4. Get a Github account.

  5. Add your RSA public key to your Github account / profile page.

    $ cat ~/.ssh/id_rsa.pub # copy and paste this into Github profile page as new key

Get the Correct Ruby Version

  1. Install a Ruby manager such as chruby.

    $ brew install chruby

  2. Add your Ruby manager to your ~/.bashrc by appending the following line:

    source /usr/local/opt/chruby/share/chruby/chruby.sh

  3. Install the ruby-install installer.

    $ brew install ruby-install

  4. Run ruby-install to install Ruby.

    $ ruby-install ruby 2.3

Install Bookbinder

  1. Install bundler.

    $ gem install bundler

  2. Install bookbinder (the bookbindery gem).

    $ gem install bookbindery

Build the Docs Locally

  1. Clone the docs template repo you will be building from.

    $ git clone [email protected]:pivotal-cf-experimental/docs-pcfservices-template

  2. cd into the book subdirectory of the repo.

    $ cd docs-partners-template/docs-book

  3. Run bundle install to install all book dependencies.

    $ bundle install

  4. Run bookbinder watch to build the book on your machine. If it doesn't succeed, try prepending the command with bundle exec so that bookbinder uses local gems instead of global gems.

    $ bundle exec bookbinder watch

  5. Browse to localhost:4567 to view the book locally and "watch" any changes that you make to source html.md.erb files. As you make and save changes to the local source files for your site, you will see them in your browser after a slight delay.

After each session of writing or revising your docs source files, commit and push them to your github repo.

Happy documenting!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%