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
Copy file name to clipboardExpand all lines: CONTRIBUTING-TECHNICAL-GUIDE.md
+15-13
Original file line number
Diff line number
Diff line change
@@ -14,34 +14,34 @@ GH provides great DX for making updates, committing and creating PRs via the bro
14
14
Use GitHub GUI browser when you:
15
15
- Have simple and only a few edits of the markdown files.
16
16
- Already know the syntax for adding internal links and adding images.
17
-
- Already know what you are going to write and you **don't** need many iterative commits to see if the result looks okay. In this case, using a local environment will be much faster (explain in the next section)
17
+
- Already know what you are going to write and you **don't** need many iterative commits to see if the result looks okay. In this case, using a local environment will be much faster as explained in the next section.
18
18
19
19
#### How To Use It?
20
-
Will briefly explain it as it is quite trivial:
20
+
I'll briefly explain the process as it is quite straightforward:
21
21
1. Via the GUI you can simply click the pencil icon to start editing, then check the differences, click commit to commit the changes to a new branch, and eventually create a PR.
22
22
2. Check that the CI jobs started running. These jobs run tests on the website including your changes. Running CI jobs are displayed in yellow.
23
23
3. Once the CI job finishes it will turn green. Upon completion, you will see a preview link that you should use to check your changes on a real deployment of the Tyk docs website.
24
24
25
25
26
26
### 2. Local Development Environment
27
-
Local environment means, checking out the tyk-docs repo and updating the files using an editor or an IDE. This allows you to test the changes by running Hugo locally and check for errors in Hugo or in the website Hugo generated.
27
+
Local environment means checking out the tyk-docs repo and updating the files using an editor or an IDE. This allows you to test your changes by running Hugo locally and check for errors both in the Hugo process and in the website that Hugo generates.
28
28
29
29
#### When To Use It?
30
30
Using the browser is not always enough and you sometimes need to check out the repo and work locally.
31
31
You normally favor using a local environment when you need to:
32
-
- Test things yourself before you push them
33
-
- Repeatedly push changes and test the website
32
+
- Test your changes in real-time before pushing them
33
+
- Repeatedly make changes and test the website
34
34
35
-
Doing so by **running Hugo locally will save you a lot of time** since it takes the CI a few minutes to update the deployment with the latest changes and finish its test before it becomes green.
35
+
Doing so by **running Hugo locally will save you a lot of time** since it takes the CI a few minutes to update the deployment with the latest changes and complete its tests before showing a green success status.
36
36
37
37
#### Use Cases For Local Development Environment
38
38
When you need to:
39
-
-Test things yourself before you push them
40
-
- Check that the image you added work
39
+
-Preview changes and verify their appearance locally
40
+
- Check that the images you added work correctly
41
41
- See how images are rendered on the page
42
42
- Check that the internal links you added work
43
-
-Are not sure about the syntax of links or images when you work on many pages
44
-
- When adding new files, it's easier to run it locally since you cannot be sure of the internal links format and may need to validate referenced links to other content pages and sections
43
+
-When you are not sure about the syntax of links or images when working on many pages
44
+
- When adding new files, it's easier to run Hugo locally because you need to validate the format of internal links and references to other content pages and sections
45
45
46
46
#### How To Use It?
47
47
@@ -415,13 +415,15 @@ You can also specify a class or custom styling:
For detailed examples and all available styling options, see the [pill-label examples page](content/ui-examples/test-pill-label.md). You can run Hugo locally to see how the pill labels appear in your browser:
418
+
To read and view detailed examples of all the available styling options, see the [pill-label live examples page](https://tyk.io/docs/ui-examples/test-pill-label/)
419
+
420
+
There's also a [security pill-label test file](./tyk-docs/tyk-docs/content/ui-examples/test-pill-label-security.md) to validate the security of the implementation. It's in a draft mode, so if you want to see it in the website, you need to run Hugo with `--buildDrafts` as follows
419
421
420
422
```
421
-
hugo server --theme=tykio --buildDrafts --enableGitInfo
423
+
hugo server --theme=tykio --buildDrafts --enableGitInfo --port 1313
422
424
```
423
425
424
-
Then navigate to `http://localhost:1313/docs/nightly/ui-examples/test-pill-label/` to view the examples.
426
+
Then navigate to `http://localhost:1313/docs/nightly/ui-examples/test-pill-label-security/` to view the examples.
0 commit comments