Commit Graph

3 Commits (69a1c7eb85af42d3edcfca68cc4406f163ea6f5b)

Author SHA1 Message Date
Ahmet Alp Balkan fe5f08a28e Allow importing of manifest files with tutorial import script
Unblocks https://github.com/kubernetes/examples/pull/38.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-07-27 11:52:31 -07:00
Ahmet Alp Balkan 8b687fcb12 First-time tutorials import from k/examples (#4353)
This imports the tutorials from kubernetes/examples repository for the first
time. It adds "DO NOT UPDATE" notices and updates some titles. These tutorials
will be maintained at k/examples repository.

Also fixing a bug in the update script (we were inserting the `<!--` comments
before the metadata section on the top, causing articles to render incorrectly).

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-07-21 11:52:38 -07:00
Ahmet Alp Balkan 109a0dc0a1 Script to import tutorials from examples repo
This Python script imports the tutorials that are going to be maintained
at the https://github.com/kubernetes/examples repository. Currently only
pulls the tutorials from master ref of examples.

This script:

- Deletes content between `<!-- EXCLUDE_FROM_DOCS BEGIN -->` and
  `<!-- EXCLUDE_FROM_DOCS END -->` (including the markers). This is to drop
  website redirection notices appear in the examples repo.
- Adds Jekyll title to the imported docs. The title can be customized so we do
  not need to parse h1 elements from the markdown.
- Insert "DO NOT UPDATE" section (commented out HTML) to the markdown files
  that are imported.

Once merged, I will go ahead and update the tutorials in kubernetes/examples,
then I will run this script and check in its results in a separate PR.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-07-10 23:16:45 -07:00