8000 Update the devguide to have more meat · baile/document-api-python@959efae · GitHub
[go: up one dir, main page]

Skip to content

Commit 959efae

Browse files
committed
Update the devguide to have more meat
1 parent ceb17d3 commit 959efae

File tree

3 files changed

+30
-15
lines changed

3 files changed

+30
-15
lines changed

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Site settings
22
title: Tableau Document API
3-
email: jdominguez@tableau.com
3+
email: github@tableau.com
44
description: Programmatically update your Tableau workbooks and data sources.
55
baseurl: "/document-api-python"
66
permalinks: pretty

docs/_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/document-api-python/edit/master/{{ page.path }}" class="edit-links"><span class="glyphicon glyphicon-pencil"></span> Edit this page</a>
20+
<a href="https://github.com/tableau/document-api-python/edit/master/docs/{{ page.path }}" class="edit-links"><span class="glyphicon glyphicon-pencil"></span> Edit this page</a>
2121
&nbsp;
2222
<a href="https://github.com/tableau/document-api-python/issues" class="edit-links"><span class="glyphicon glyphicon-flag"></span> Submit an issue</a>
2323
</div>

docs/docs/dev-guide.md

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ title: Developer Guide
33
layout: docs
44
---
55

6-
### Making your first patch
6+
## Making your first patch
77

8-
1. Make sure you've signed the CLA
8+
1. Make sure you have [signed the CLA](http://tableau.github.io/#contributor-license-agreement-cla)
99

10-
1. Clone the repo
10+
1. Fork the repository
11+
12+
We follow the "Fork and Pull" model as described [here](https://help.github.com/articles/about-collaborative-development-models/)
13+
14+
1. Clone your fork
1115

1216
```shell
13-
git clone http://github.com/tableau/document-api-python
17+
git clone http://github.com/<your_username>/document-api-python
1418
```
1519

1620
1. Run the tests to make sure everything is peachy
@@ -21,33 +25,44 @@ layout: docs
2125

2226
1. Set up the feature, fix, or documentation branch.
2327

24-
It is recommended to use the format [issue#]-[type]-[description] (e.g. 13-fix-connection-bug)
28+
It is recommended to use the format issue#-type-description (e.g. 13-fix-connection-bug)
2529

2630
```shell
2731
git checkout -b 13-feature-new-stuff
2832
```
2933

3034
1. Code and Commit!
3135

32-
Here's a quick checklist for ensuring a good diff:
36+
Here's a quick checklist for ensuring a good pull request:
3337

34-
- The diff touches the minimal amount of files possible while still fufilling the purpose of the diff
35-
- The diff uses Unix line endings
36-
- The diff adheres to our PEP8 style guides. If you've cloned the repo you can run `pycodestyle .`
38+
- Only touch the minimal amount of files possible while still accomplishing the goal
39+
- Ensure all indentation is done as 4-spaces and your editor is set to unix line endings
40+
- The code matches PEP8 style guides. If you cloned the repo you can run `pycodestyle .`
41+
- Keep commit messages clean and descriptive.
42+
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
3743

3844
1. Add Tests
3945

46+
All of our tests live under the `test/` folder in the repository.
47+
We use `unittest` and the built-in test runner `python setup.py test`.
48+
If a test needs a static file, like a twb/twbx, it should live under `test/assets/`
49+
4050
1. Update Documentation
4151

42-
Our documentation is written in markdown and built with [Mkdocs](http://www.mkdocs.org). More information on how to update and build the docs can be found [here](#updating-documentation)
52+
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`.
4353

44-
1. Run the tests again and make sure they pass!
54+
When adding a new feature or improving existing functionality we may ask that you update the documentation along with your code.
55+
56+
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
4557

4658
1. Submit to your fork
4759

48-
1. Submit a PR
60+
1. Make a PR as described [here](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) against the 'development' branch
61+
62+
1. Wait for a review and address any feedback.
63+
While we try and stay on top of all issues and PRs it might take a few days for someone to respond. Politely pinging 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
4964

50-
1. Wait for a review, and address any feedback.
65+
1. That's it! When the PR has received :rocket:'s from members of the core team they will merge the PR
5166

5267
<!--
5368
### Updating Documentation

0 commit comments

Comments
 (0)
0