You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First pass at wraith, update contribute and readme
- Create wraith.yaml
- Compare live and local docs
- Include path for one of every content type
- Revise Rakefile so that wraith can be individually executed, default task is htmlproofer for circle
- gitignore the shots directory (images and galleries generated by wraith)
- Edit contribute to align with readme recommendation on building locally
- Include steps to run tests indvidually (noted as optional)
- Preserve instructions for editing on GH and link to GH doc
- Fix readme ol synstax
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+18-13
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,6 @@
2
2
3
3
Help us create relevant and useful content for developers like yourself. See something you'd like to add or change? We love pull requests!
4
4
5
-
## Before You Start
6
-
7
-
* If you don't have one already, sign up for a [GitHub account](https://github.com/signup/free).
8
-
* Fork the pantheon-systems/documentation repository on GitHub.
9
-
Trying to edit or create a file in this repository will create your fork automatically.
10
-
*[Clone your fork locally](https://help.github.com/articles/cloning-a-repository/).
11
-
* Add our repo as a remote. `git remote add upstream [email protected]:pantheon-systems/documentation.git`.
12
-
13
5
**NOTE**: All contributions must be licensed under [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/). Code snippet contributions must additionally be licensed under [The MIT License](http://opensource.org/licenses/MIT). You must have permission to contribute your work under these terms.
14
6
15
7
## Issues - Searching and Creating
@@ -27,12 +19,25 @@ Description: The document currently suggests using XYZ commands, but I get the f
27
19
28
20
Add labels to issues by clicking the gear in the sidebar on the right. Labels are used to signify priority, category, and to help filter existing issues. For example, if a doc is incorrect, the label 'Doc Defect' should be applied.
29
21
30
-
## Edit Existing Docs
22
+
## Edit and Test Locally Using Vagrant
23
+
24
+
**Note**: To preserve the accuracy of promised information throughout the docs, search the repository for links to sections that have been renamed and update accordingly.
25
+
26
+
1.[Use Vagrant](https://github.com/pantheon-systems/documentation#option-1-use-vagrant-recommended) to run the docs site locally.
27
+
2. Navigate to your local `documentation` repository and use `git checkout -b <new-branch-name>` to switch to a new branch.
28
+
3. Edit/Create docs locally using your favorite text editor (e.g. [Atom](https://atom.io/)), then save the file changes.
29
+
4. Verify modifications on the local site <http://docs.local:8000/docs>
30
+
5. Test layout or code changes by running `vagrant ssh` and `cd /vagrant`, then execute the following tests individually (optional):
-`scripts/merge_conflicts.sh`: Look for merge conflicts.
36
+
6. Commit changes and push to your fork. Issue pull-requests one document/issue at a time.
37
+
38
+
## Edit on GitHub
31
39
32
-
1. Search [open issues](https://github.com/pantheon-systems/documentation/issues) to make sure your isn't duplicated.
33
-
2. Locally, cd to the `documentation` repository and use `git checkout -b <new-branch-name>` to switch to a new branch.
34
-
3. Edit locally, commit changes, and push to your fork.
35
-
4. To preserve the accuracy of promised information throughout the docs, search the repository for links to the revised section and update related articles accordingly.
40
+
Trying to edit or create a file in this repository will create your fork automatically. Commit changes and issue pull-requests one document/issue at a time. For more information, see [Using Pull Requests](https://help.github.com/articles/using-pull-requests/).
Copy file name to clipboardexpand all lines: README.md
+48-48
Original file line number
Diff line number
Diff line change
@@ -43,52 +43,52 @@ Fork and clone this repository. Issue pull-requests one document at a time.
43
43
44
44
### Option 2. Install manually
45
45
1. Get composer:
46
-
If you do not want to install composer globally, please refer to [getcomposer.org instuctions](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).
47
-
48
-
Run the following command to install composer globally:
49
-
```
50
-
curl -sS https://getcomposer.org/installer | php
51
-
mv composer.phar /usr/local/bin/composer
52
-
```
53
-
54
-
**Note**: Run the `mv` command with sudo if it fails.
55
-
3. Install dependencies:
56
-
From within the `documentation` repo, run the following command to install all needed dependencies:
57
-
```
58
-
composer install
59
-
```
60
-
4. Start your local server:
61
-
If you do not want to install sculpin globally, you can use the following commands to start your local server:
62
-
```
63
-
./vendor/bin/sculpin generate --server
64
-
```
65
-
Visit your docs site at: <http://localhost:8000/docs>
66
-
67
-
In order to globally execute sculpin, run the following commands:
68
-
```
69
-
curl -O https://download.sculpin.io/sculpin.phar
70
-
sudo chmod +x sculpin.phar
71
-
mv sculpin.phar /usr/local/bin/sculpin
72
-
```
73
-
74
-
Build sculpin and run a local instance:
75
-
76
-
```
77
-
sculpin generate --server
78
-
```
79
-
Visit your docs site at: <http://localhost:8000/docs>
80
-
81
-
82
-
Finally, you can tell sculpin to watch the docs directory and automatically
83
-
regenerate anything changed:
84
-
```
85
-
sculpin generate --server --watch
86
-
```
87
-
If you use --watch and see it constantly running, regenerating, drop --watch
88
-
until you identify and resolve the problem.
46
+
If you do not want to install composer globally, please refer to [getcomposer.org instuctions](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).
47
+
48
+
Run the following command to install composer globally:
49
+
```
50
+
curl -sS https://getcomposer.org/installer | php
51
+
mv composer.phar /usr/local/bin/composer
52
+
```
53
+
54
+
**Note**: Run the `mv` command with sudo if it fails.
55
+
2. Install dependencies:
56
+
From within the `documentation` repo, run the following command to install all needed dependencies:
57
+
```
58
+
composer install
59
+
```
60
+
3. Start your local server:
61
+
If you do not want to install sculpin globally, you can use the following commands to start your local server:
62
+
```
63
+
./vendor/bin/sculpin generate --server
64
+
```
65
+
Visit your docs site at: <http://localhost:8000/docs>
66
+
67
+
In order to globally execute sculpin, run the following commands:
68
+
```
69
+
curl -O https://download.sculpin.io/sculpin.phar
70
+
sudo chmod +x sculpin.phar
71
+
mv sculpin.phar /usr/local/bin/sculpin
72
+
```
73
+
74
+
Build sculpin and run a local instance:
75
+
76
+
```
77
+
sculpin generate --server
78
+
```
79
+
Visit your docs site at: <http://localhost:8000/docs>
80
+
81
+
82
+
Finally, you can tell sculpin to watch the docs directory and automatically
83
+
regenerate anything changed:
84
+
```
85
+
sculpin generate --server --watch
86
+
```
87
+
If you use --watch and see it constantly running, regenerating, drop --watch
88
+
until you identify and resolve the problem.
89
89
5. Images
90
-
For images to render on your local environment you need to apply these commands from within the `documentation` directory:
91
-
```
92
-
$ cd output_dev
93
-
$ ln -s ./ source
94
-
```
90
+
For images to render on your local environment you need to apply these commands from within the `documentation` directory:
0 commit comments