Skip to content

Commit 47e29a4

Browse files
committed
2 parents d530c8e + f0fd3d4 commit 47e29a4

File tree

444 files changed

+101739
-10571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

444 files changed

+101739
-10571
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: bundler
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "01:00"
8+
open-pull-requests-limit: 10
9+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ puppetdocs-latest.tar.gz*
1818
.bundle
1919
externalsources
2020
_cache
21-
Gemfile.lock
2221
.*.swo
2322
.*.swp
2423
.*.un~
@@ -29,3 +28,4 @@ Gemfile.lock
2928
link_test_results.yaml
3029
link_report.txt
3130
.yardoc
31+
puppet-docs-build.log

Gemfile

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
source 'https://rubygems.org/'
22
gemspec :name => 'puppet_docs'
33

4-
gem 'versionomy'
5-
gem 'rake'
6-
gem 'rack', '~> 1.6' # We don't want Rack 2.0 because our builders can't handle it (and it's probably incompatible, too)
7-
gem 'git'
8-
gem 'json'
4+
gem 'versionomy', '~> 0.5.0'
5+
gem 'rake', '~> 13.0', '>= 13.0.1'
6+
gem 'rack', '~> 2.2', '>= 2.2.3'
7+
gem 'git', '~> 1.7'
8+
gem 'json', '~> 2.3', '>= 2.3.1'
99

1010
group(:build_site) do
11-
gem 'jekyll', '3.0.1'
12-
gem 'kramdown', '1.12.0'
13-
gem 'vlad'
14-
gem 'vlad-git'
11+
gem 'jekyll', '~> 3.8' # See https://jekyllrb.com/docs/upgrading/3-to-4/ before going to '~> 4.1'
12+
gem 'kramdown', '~> 1.17'
13+
gem 'vlad', '~> 1.4'
14+
gem 'vlad-git', '~> 2.1'
1515
gem 'listen', '~> 3.0.0' # Preserve ability to run on Ruby 2.0, since listen 3.1 requires Ruby ~> 2.2.
1616
end
1717

1818
group(:generate_references) do
19-
gem 'ronn'
20-
gem 'yard'
21-
gem 'rdoc'
22-
gem 'rgen'
23-
gem 'puppet-strings', :git => 'https://github.com/puppetlabs/puppet-strings.git', :tag => 'v2.3.0'
24-
gem 'puppet'
25-
gem 'nokogiri'
26-
gem 'pragmatic_segmenter'
27-
gem 'punkt-segmenter'
19+
gem 'ronn', '~> 0.7'
20+
gem 'yard', '~> 0.9'
21+
gem 'rdoc', '~> 6.2'
22+
gem 'rgen', '~> 0.8'
23+
gem 'puppet-strings', :git => 'https://github.com/puppetlabs/puppet-strings.git', :tag => 'v2.4.0'
24+
gem 'puppet', '~> 6'
25+
gem 'nokogiri', '~> 1.10'
26+
gem 'pragmatic_segmenter', '~> 0.3'
27+
gem 'punkt-segmenter', '~> 0.9'
2828
end
2929

3030
group(:unknown) do
31-
gem 'maruku'
31+
gem 'maruku', '~> 0.7'
3232
gem 'activerecord', '~>3'
3333
end
3434

Gemfile.lock

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
GIT
2+
remote: https://github.com/puppetlabs/puppet-strings.git
3+
revision: 8f11ae8b3577b07062c0cbd08b4396ca05fb16b0
4+
tag: v2.4.0
5+
specs:
6+
puppet-strings (2.4.0)
7+
rgen
8+
yard (~> 0.9.5)
9+
10+
PATH
11+
remote: .
12+
specs:
13+
puppet_docs (0.1)
14+
15+
GEM
16+
remote: https://rubygems.org/
17+
specs:
18+
activemodel (3.2.22.5)
19+
activesupport (= 3.2.22.5)
20+
builder (~> 3.0.0)
21+
activerecord (3.2.22.5)
22+
activemodel (= 3.2.22.5)
23+
activesupport (= 3.2.22.5)
24+
arel (~> 3.0.2)
25+
tzinfo (~> 0.3.29)
26+
activesupport (3.2.22.5)
27+
i18n (~> 0.6, >= 0.6.4)
28+
multi_json (~> 1.0)
29+
addressable (2.7.0)
30+
public_suffix (>= 2.0.2, < 5.0)
31+
arel (3.0.3)
32+
blockenspiel (0.5.0)
33+
builder (3.0.4)
34+
colorator (1.1.0)
35+
concurrent-ruby (1.1.6)
36+
deep_merge (1.2.1)
37+
em-websocket (0.5.1)
38+
eventmachine (>= 0.12.9)
39+
http_parser.rb (~> 0.6.0)
40+
eventmachine (1.2.7)
41+
facter (4.0.30)
42+
hocon (~> 1.3)
43+
thor (>= 1.0.1, < 2.0)
44+
fast_gettext (1.8.0)
45+
ffi (1.13.1)
46+
forwardable-extended (2.6.0)
47+
git (1.7.0)
48+
rchardet (~> 1.8)
49+
hiera (3.6.0)
50+
hocon (1.3.1)
51+
hpricot (0.8.6)
52+
http_parser.rb (0.6.0)
53+
httpclient (2.8.3)
54+
i18n (0.9.5)
55+
concurrent-ruby (~> 1.0)
56+
jekyll (3.8.7)
57+
addressable (~> 2.4)
58+
colorator (~> 1.0)
59+
em-websocket (~> 0.5)
60+
i18n (~> 0.7)
61+
jekyll-sass-converter (~> 1.0)
62+
jekyll-watch (~> 2.0)
63+
kramdown (~> 1.14)
64+
liquid (~> 4.0)
65+
mercenary (~> 0.3.3)
66+
pathutil (~> 0.9)
67+
rouge (>= 1.7, < 4)
68+
safe_yaml (~> 1.0)
69+
jekyll-sass-converter (1.5.2)
70+
sass (~> 3.4)
71+
jekyll-watch (2.2.1)
72+
listen (~> 3.0)
73+
json (2.3.1)
74+
kramdown (1.17.0)
75+
liquid (4.0.3)
76+
listen (3.0.8)
77+
rb-fsevent (~> 0.9, >= 0.9.4)
78+
rb-inotify (~> 0.9, >= 0.9.7)
79+
locale (2.1.3)
80+
maruku (0.7.3)
81+
mercenary (0.3.6)
82+
mini_portile2 (2.4.0)
83+
multi_json (1.15.0)
84+
mustache (1.1.1)
85+
nokogiri (1.10.10)
86+
mini_portile2 (~> 2.4.0)
87+
open4 (1.3.4)
88+
pathutil (0.16.2)
89+
forwardable-extended (~> 2.6)
90+
pragmatic_segmenter (0.3.22)
91+
unicode
92+
public_suffix (4.0.5)
93+
punkt-segmenter (0.9.1)
94+
unicode_utils (>= 1.0.0)
95+
puppet (6.17.0)
96+
concurrent-ruby (~> 1.0)
97+
deep_merge (~> 1.0)
98+
facter (> 2.0.1, < 5)
99+
fast_gettext (~> 1.1)
100+
hiera (>= 3.2.1, < 4)
101+
httpclient (~> 2.8)
102+
locale (~> 2.1)
103+
multi_json (~> 1.10)
104+
puppet-resource_api (~> 1.5)
105+
semantic_puppet (~> 1.0)
106+
puppet-resource_api (1.8.13)
107+
hocon (>= 1.0)
108+
rack (2.2.3)
109+
rake (13.0.1)
110+
rb-fsevent (0.10.4)
111+
rb-inotify (0.10.1)
112+
ffi (~> 1.0)
113+
rchardet (1.8.0)
114+
rdiscount (2.2.0.1)
115+
rdoc (6.2.1)
116+
rgen (0.8.2)
117+
ronn (0.7.3)
118+
hpricot (>= 0.8.2)
119+
mustache (>= 0.7.0)
120+
rdiscount (>= 1.5.8)
121+
rouge (3.21.0)
122+
safe_yaml (1.0.5)
123+
sass (3.7.4)
124+
sass-listen (~> 4.0.0)
125+
sass-listen (4.0.0)
126+
rb-fsevent (~> 0.9, >= 0.9.4)
127+
rb-inotify (~> 0.9, >= 0.9.7)
128+
semantic_puppet (1.0.2)
129+
thor (1.0.1)
130+
tzinfo (0.3.57)
131+
unicode (0.4.4.4)
132+
unicode_utils (1.4.0)
133+
versionomy (0.5.0)
134+
blockenspiel (~> 0.5)
135+
vlad (1.4.0)
136+
open4
137+
rake (>= 0.8.1)
138+
vlad-git (2.1.0)
139+
yard (0.9.25)
140+
141+
PLATFORMS
142+
ruby
143+
144+
DEPENDENCIES
145+
activerecord (~> 3)
146+
git (~> 1.7)
147+
jekyll (~> 3.8)
148+
json (~> 2.3, >= 2.3.1)
149+
kramdown (~> 1.17)
150+
listen (~> 3.0.0)
151+
maruku (~> 0.7)
152+
nokogiri (~> 1.10)
153+
pragmatic_segmenter (~> 0.3)
154+
punkt-segmenter (~> 0.9)
155+
puppet (~> 6)
156+
puppet-strings!
157+
puppet_docs!
158+
rack (~> 2.2, >= 2.2.3)
159+
rake (~> 13.0, >= 13.0.1)
160+
rdoc (~> 6.2)
161+
rgen (~> 0.8)
162+
ronn (~> 0.7)
163+
versionomy (~> 0.5.0)
164+
vlad (~> 1.4)
165+
vlad-git (~> 2.1)
166+
yard (~> 0.9)
167+

LICENSE

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The content in this documentation project is
22

3-
Copyright (c) 2009-2016 Puppet, Inc.
3+
Copyright (c) Puppet, Inc.
44

55
Licensed under the Creative Commons 3.0
66
with Attribution and Share Alike Clauses
@@ -15,11 +15,7 @@ OR COPYRIGHT LAW IS PROHIBITED.
1515

1616
==============================================
1717

18-
The application to develop this content is
19-
20-
Copyright (c) 2009-2017 Puppet, Inc.
21-
22-
Based on Rails Guides:
18+
The application to develop this content is based on Rails Guides:
2319

2420
Copyright (c) 2004-2009 David Heinemeier Hansson
2521

README.markdown

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@ Curated documentation for Puppet.
44

55
## Where is everything?
66

7-
This repo has been split into two distinct branches of documentation, archived and current. The master branch contains only documentation that is presently being generated into HTML and delivered to our Drupal integration. The archive branch contains older versions of documentation that are to be migrated to a new archive site.
7+
Most of our documentation has been moved out of this repository. This repo contains:
8+
* Some of our older, unmaintained documentation, which is deprecated and may be removed from this repo without further notice. For archived docs for unmaintained, unsupported versions of Puppet, see the [Puppet docs archive](https://github.com/puppetlabs/docs-archive).
9+
* Reference documentation generated from code. This reference documentation is then rendered into HTML and included in the Puppet docs website.
810

9-
Starting in Puppet 5.5, and continuing into current releases, we are migrating much of the Puppet documentation into DITA format in a CMS called easyDITA. When we have migrated a Markdown page in the docs to DITA, we delete it from here so that it's clear what page to update when changes come (and so that the old content isn't accidentally published).
11+
As of Puppet 5.5, Puppet docs were migrated into the DITA XML format and have been maintained in a CMS. We removed each migrated page from this repository, so that the old content wasn't accidentally published.
1012

11-
Starting in Facter 3.12, the Facter docs have been migrated to easyDITA (in the Puppet doc set), so updates to 3.12 (and later) should be made there instead of here. The generated core_facts.md file is still in github, but has moved to the puppet/x.y folder instead of facter/x.y.
13+
As of Facter 3.12, the Facter docs were migrated to DITA and organized as part of the Puppet doc set. Updates to 3.12 (and later) should be made in DITA, not in this repo. The generated `core_facts.md` file is still this repository, but has moved to the `puppet/x.y` folder instead of `facter/x.y`.
1214

13-
## Contributions from the Puppet community are still very welcome.
15+
## Contributions from the Puppet community are welcome
1416

15-
- If something in the documentation doesn't seem right, or if you think something important is missing, open a Jira ticket in the DOCUMENT project here: https://tickets.puppetlabs.com/projects/DOCUMENT/ Let us know the URL of the page, and describe the changes you think it needs.
16-
- Or email docs@puppet.com if you have questions about contributing to the documentation.
17+
If something in the documentation doesn't seem right, or if you think something important is missing, we want to hear from you! Please send us feedback in any of the following ways:
18+
* Use the feedback form on the relevant page to send us details of the issue.
19+
* Open a Jira ticket in the DOCUMENT project here: https://tickets.puppetlabs.com/projects/DOCUMENT/ Let us know the URL of the page, and describe the changes you think it needs.
20+
* Email `docs@puppet.com` if you have questions about contributing to the documentation.
1721

1822

1923
## Copyright
2024

21-
Copyright (c) 2009-2018 Puppet, Inc. See LICENSE for details.
25+
Copyright (c) 2009-2020 Puppet, Inc. See LICENSE for details.

README_WRITING.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
If you've bookmarked or linked to this page as a source of information about contributing to Puppet documentation, please update it to point to [Contributing](https://docs.puppet.com/contribute.html)
1+
If you've bookmarked or linked to this page as a source of information about contributing to Puppet documentation, please update it to point to [Contributing](https://puppet.com/docs/puppet/latest/contributing.html)

Rakefile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,30 @@ VERSION_FILE = "#{OUTPUT_DIR}/VERSION.txt"
1919
@config_data = PuppetDocs::Config.new("#{SOURCE_DIR}/_config.yml")
2020

2121
def jekyll(command = 'build', source = SOURCE_DIR, destination = OUTPUT_DIR, *args)
22+
23+
about_verbose_mode = <<-ABOUT_VERBOSE_MODE
24+
25+
-*-*-*-*-*-*-*-*-*-*-*-*-
26+
27+
To turn on verbose mode and logging,
28+
$ export DEBUG_PUPPET_DOCS_RAKEFILE=1
29+
30+
To turn off,
31+
$ unset DEBUG_PUPPET_DOCS_RAKEFILE
32+
33+
-*-*-*-*-*-*-*-*-*-*-*-*-
34+
35+
ABOUT_VERBOSE_MODE
36+
37+
puts about_verbose_mode
38+
39+
if ENV['DEBUG_PUPPET_DOCS_RAKEFILE']
40+
verbose_mode = '--verbose | tee puppet-docs-build.log'
41+
end
42+
2243
amended_config = "#{SOURCE_DIR}/_config_amended.yml"
2344
File.write(amended_config, YAML.dump(@config_data))
24-
system("bundle exec jekyll #{command} --source #{source} --destination #{destination} #{args.join(' ')} --config #{amended_config}")
45+
system("set -x; bundle exec jekyll #{command} --source #{source} --destination #{destination} #{args.join(' ')} --config #{amended_config} #{verbose_mode}")
2546
FileUtils.rm(amended_config)
2647
end
2748

lib/README.markdown

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Configuring docs generation
2+
3+
Curated documentation for Puppet and tools for generating a deployable copy
4+
of the docs site.
5+
6+
> **NOTE:** These instructions are no longer relevant for generating most documentation
7+
published to puppet.com/docs, but are still useful for testing changes to content
8+
generated from Puppet codebases.
9+
10+
Installation
11+
------------
12+
13+
The tools and rake tasks for generating the puppet-docs site require Ruby 2.2.3 or greater.
14+
15+
To install the documentation-generating code:
16+
17+
1. Clone the repository:
18+
19+
$ git clone git://github.com/puppetlabs/puppet-docs.git
20+
21+
2. Use your package manager to install rake, libxml2-dev, libxslt-dev, and pygments.
22+
Package names may vary by platform; for example, using Macports, these packages could
23+
be installed with:
24+
25+
$ sudo port -d install rb-rake libxml2 libxslt py-pygments
26+
27+
Make sure there is a `pygmentize` command available! If your package tools
28+
install the pygmentize binary with a different name (like Macports does),
29+
you must symlink it so Jekyll can find the command.
30+
31+
3. Install the Ruby dependencies:
32+
33+
The Puppet docs project uses Ruby Bundler to ensure that you have the correct dependencies
34+
installed on your system and that the documents are being built with the correct versions
35+
of needed binaries. To install the project's requirements:
36+
37+
$ sudo gem install bundler
38+
$ cd puppet-docs
39+
$ bundle install --path=vendor/bundle
40+
41+
Building and viewing
42+
--------------------
43+
44+
1. Generate the documentation:
45+
46+
$ rake generate
47+
48+
2. Start a little server to view it at http://localhost:9292:
49+
50+
$ rake serve
51+
52+
(You can use `rake run` to combine these steps.)
53+
54+
Copyright
55+
---------
56+
57+
Copyright (c) 2009-2019 Puppet, Inc. See LICENSE for details.

0 commit comments

Comments
 (0)