8000 D45 docs v06.1 (partial update) (#290) · SnarkyPapi/server-client-python@c8e05d5 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit c8e05d5

Browse files
authored
D45 docs v06.1 (partial update) (tableau#290)
* Updating dev guide with gh-pages info for docs * Moving the Dev Guide up in the TOC pane * Update dev-guide.md Added Tyler's correction for pycodestyle.
1 parent 45c63eb commit c8e05d5

File tree

3 files changed

+37
-19
lines changed

3 files changed

+37
-19
lines changed

_includes/docs_menu.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<li>
2323
<a href="{{ site.baseurl }}/docs/samples">Samples</a>
2424
</li>
25+
<li>
26+
<a href="{{ site.baseurl }}/docs/dev-guide">Developer Guide</a>
27+
10000 </li>
2528
<li>
2629
<a href="{{ site.baseurl }}/docs/api-ref">API Reference</a>
2730
<ul>
@@ -40,12 +43,18 @@
4043
<li>
4144
<a href="{{ site.baseurl }}/docs/api-ref#groups">Groups</a>
4245
</li>
46+
<li>
47+
<a href="{{ site.baseurl }}/docs/api-ref#jobs">Jobs</a>
48+
</li>
4349
<li>
4450
<a href="{{ site.baseurl }}/docs/api-ref#projects">Projects</a>
4551
</li>
4652
<li>
4753
<a href="{{ site.baseurl }}/docs/api-ref#requests">Requests</a>
4854
</li>
55+
<li>
56+
<a href="{{ site.baseurl }}/docs/api-ref#schedules">Schedules</a>
57+
</li>
4958
<li>
5059
<a href="{{ site.baseurl }}/docs/api-ref#server">Server</a>
5160
</li>
@@ -55,6 +64,9 @@
5564
<li>
5665
<a href="{{ site.baseurl }}/docs/api-ref#sort">Sort</a>
5766
</li>
67+
<li>
68+
<a href="{{ site.baseurl }}/docs/api-ref#subscriptions">Subscriptions</a>
69+
</li>
5870
<li>
5971
<a href="{{ site.baseurl }}/docs/api-ref#users">Users</a>
6072
</li>
@@ -66,8 +78,5 @@
6678
</li>
6779
</ul>
6880
</li>
69-
<li>
70-
<a href="{{ site.baseurl }}/docs/dev-guide">Developer Guide</a>
71-
</li>
7281
</ul>
7382
</div>

_layouts/docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="content .col-xs-12 .col-sm-8 .col-md-9">
1818
<h1>{{ page.title }}</h1>
1919
<div class="edit-container">
20-
<a href="https://github.com/tableau/server-client-python/edit/master/docs/{{ page.path }}" class="edit-links"><span class="glyphicon glyphicon-pencil"></span> Edit this page</a>
20+
<a href="https://github.com/tableau/server-client-python/edit/gh-pages/{{ page.path }}" class="edit-links"><span class="glyphicon glyphicon-pencil"></span> Edit this page</a>
2121
&nbsp;
2222
<a href="https://github.com/tableau/server-client-python/issues" class="edit-links"><span class="glyphicon glyphicon-flag"></span> Submit an issue</a>
2323
</div>

docs/dev-guide.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ This topic describes how to contribute to the Tableau Server Client (Python) pro
88
* TOC
99
{:toc}
1010

11+
---
12+
1113
## Submit your first patch
1214

15+
16+
This section will get you started with the basic workflow, describing how to create your own fork of the repository and how to open a pull request (PR) to add your contributions to the **development** branch.
17+
18+
### Get the source code and set up your branch
19+
1320
1. Make sure you have [signed the CLA](http://tableau.github.io/#contributor-license-agreement-cla)
1421

1522
1. Fork the repository.
@@ -36,45 +43,47 @@ This topic describes how to contribute to the Tableau Server Client (Python) pro
3643
git checkout -b 13-feature-new-stuff
3744
```
3845

39-
1. Code and commit!
46+
### Code and commit
4047

41-
Here's a quick checklist for ensuring a good pull request:
48+
Here's a quick checklist to follow when coding to ensure a good pull request (PR):
4249

43-
- Only touch the minimal amount of files possible while still accomplishing the goal.
50+
- Only touch the fewest number of files possible while still accomplishing the goal.
4451
- Ensure all indentation is done as 4-spaces and your editor is set to unix line endings.
45- - The code matches PEP8 style guides. If you cloned the repo you can run `pycodestyle .`
52+
- The code matches PEP8 style guides. If you cloned the repo you can run `pycodestyle server-client-python test samples`
4653
- Keep commit messages clean and descriptive.
4754
If the PR is accepted it will get 'Squashed' into a single commit before merging, the commit messages will be used to generate the Merge commit message.
4855

49-
1. Add tests.
56+
### Add tests
5057

5158
All of our tests live under the `test/` folder in the repository.
52-
We use `unittest` and the built-in test runner `python setup.py test`.
53-
If a test needs a static file, like a twb/twbx, it should live under `test/assets/`
59+
We use `pytest` and the built-in test runner `python setup.py test`.
60+
If a test needs a static file, like a .twb/.twbx, it should live under `test/assets/`
5461

55-
1. Update the documentation.
56-
57-
Our documentation is written in markdown and built with Jekyll on Github Pages. All of the documentation source files can be found in `docs/docs`.
62+
### Update the documentation
5863

5964
When adding a new feature or improving existing functionality we may ask that you update the documentation along with your code.
6065

61-
If you are just making a PR for documentation updates (adding new docs, fixing typos, improving wording) the easiest method is to use the built in `Edit this file` in the Github UI
66+
Our documentation is written in markdown and built with Jekyll on GitHub Pages. All of the documentation source files can be found in `/docs` folder in the **gh-pages** branch. The docs are hosted on the following URL: [https://tableau.github.io/server-client-python](https://tableau.github.io/server-client-python)
67+
68+
If you are just making documentation updates (adding new docs, fixing typos, improving wording) the easiest method is to use the built-in `Edit this file` feature right in GitHub (click the pencil icon). If you are viewing one of the pages on [https://tableau.github.io/server-client-python](https://tableau.github.io/server-client-python), clicking the **Edit this page** link at the top of the page will take you to the same place.
6269

63-
1. Submit to your fork.
70+
### Commit changes to your fork and open a PR
6471

65-
1. Make a PR as described [here](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) against the 'development' branch.
72+
1. Make a PR as described [here](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) against the **development** branch for code changes, or against **gh-pages** for documentation updates.
6673

6774
1. Wait for a review and address any feedback.
6875
While we try and stay on top of all issues and PRs it might take a few days for someone to respond. Politely pinging
6976
the PR after a few days with no response is OK, we'll try and respond with a timeline as soon as we are able.
7077

71-
1. That's it! When the PR has received :rocket:'s from members of the core team they will merge the PR
78+
1. That's it! When the PR has received ![](https://assets-cdn.github.com/images/icons/emoji/unicode/1f680.png){:height="5%" width="5%"} (:rocket:'s) from members of the core team they will merge the PR
79+
80+
---
7281

7382

7483
## Add new features
7584

7685
1. Create an endpoint class for the new feature, following the structure of the other endpoints. Each endpoint usually
77-
has `get`, `post`, `update`, and `delete` operations that require making the url, creating the XML request if necesssary,
86+
has `get`, `post`, `update`, and `delete` operations that require making the url, creating the XML request if necessary,
7887
sending the request, and creating the target item object based on the server response.
7988

8089
1. Create an item class for the new feature, following the structure of the other item classes. Each item has properties

0 commit comments

Comments
 (0)
0