Skip to content

Commit 2bcfefd

Browse files
authored
Merge pull request #658 from tableau/docs-editing-pass
Doc pages cleanup and minor editing
2 parents b90818a + 16e0778 commit 2bcfefd

File tree

12 files changed

+146
-154
lines changed

12 files changed

+146
-154
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,6 @@ $RECYCLE.BIN/
144144
*.lnk
145145

146146
# Documentation
147-
docs/_site/
148-
docs/.jekyll-metadata
149-
docs/Gemfile.lock
147+
_site/
148+
.jekyll-metadata
149+
Gemfile.lock

_includes/docs_menu.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<a href="{{ site.baseurl }}/docs/versions">Versions</a>
1212
</li>
1313
<li>
14-
<a href="{{ site.baseurl }}/docs/page-through-results">Page through Results</a>
14+
<a href="{{ site.baseurl }}/docs/page-through-results">Page Through Results</a>
1515
</li>
1616
<li>
1717
<a href="{{ site.baseurl }}/docs/populate-connections-views">Populate Connections and Views</a>
@@ -53,7 +53,7 @@
5353
<a href="{{ site.baseurl }}/docs/api-ref#requests">Requests</a>
5454
</li>
5555
<li>
56-
<a href="{{ site.baseurl }}/docs/api-ref#schedules">Schedules</a>
56+
<a href="{{ site.baseurl }}/docs/api-ref#schedules">Schedules</a>
5757
</li>
5858
<li>
5959
<a href="{{ site.baseurl }}/docs/api-ref#server">Server</a>

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<ul class="nav navbar-nav">
1616
<li><a href="{{ site.baseurl }}/docs/">Docs</a></li>
1717
<li><a href="{{ site.baseurl }}/docs/api-ref">API Reference</a></li>
18-
<li><a target="_blank" href="https://community.tableau.com/community/developers/content">Forum</a></li>
18+
<li><a target="_blank" href="https://community.tableau.com/s/developers">Forum</a></li>
1919
<!-- <li><a href="{{ site.baseurl }}/news/">What's New?</a></li> -->
2020
</ul>
2121
<ul class="nav navbar-nav navbar-right">

docs/api-ref.md

Lines changed: 68 additions & 68 deletions
Large diffs are not rendered by default.

docs/dev-guide.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ This topic describes how to contribute to the Tableau Server Client (Python) pro
1212

1313
## Submit your first patch
1414

15-
1615
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.
1716

1817
### Get the source code and set up your branch
1918

20-
1. Make sure you have [signed the CLA](http://tableau.github.io/#contributor-license-agreement-cla)
19+
1. Make sure you have [signed the CLA](https://tableau.github.io/contributing.html)
2120

2221
1. Fork the repository.
2322

@@ -40,9 +39,11 @@ This section will get you started with the basic workflow, describing how to cre
4039
It is recommended to use the format issue#-type-description (e.g. 13-fix-connection-bug) like so:
4140

4241
```shell
43-
git checkout -b 13-feature-new-stuff
42+
git checkout -b 13-feature-new-stuff development
4443
```
4544

45+
For documentation changes, see the documentation section below.
46+
4647
### Code and commit
4748

4849
Here's a quick checklist to follow when coding to ensure a good pull request (PR):
@@ -65,21 +66,20 @@ This section will get you started with the basic workflow, describing how to cre
6566

6667
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)
6768

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.
69+
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.
6970

7071
### Commit changes to your fork and open a PR
7172

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.
73+
1. Make a PR as described [here](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork) against the **development** branch for code changes, or against **gh-pages** for documentation updates.
7374

7475
1. Wait for a review and address any feedback.
7576
While we try and stay on top of all issues and PRs it might take a few days for someone to respond. Politely pinging
7677
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.
7778

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+
1. That's it! When the PR has received ![](https://github.githubassets.com/images/icons/emoji/unicode/1f680.png){:height="5%" width="5%"} (:rocket:'s) from members of the core team they will merge the PR.
7980

8081
---
8182

82-
8383
## Add new features
8484

8585
1. Create an endpoint class for the new feature, following the structure of the other endpoints. Each endpoint usually

docs/filter-sort.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ then pass the object to your endpoint as a parameter.
88
* TOC
99
{:toc}
1010

11-
1211
## Available endpoints and fields
1312

1413
You can use the TSC library to filter and sort the following endpoints:
@@ -30,11 +29,11 @@ fields:
3029
* UpdatedAt
3130

3231
**Important**: Not all of the fields are available for all endpoints. For more information, see the [REST
33-
API help](http://onlinehelp.tableau.com/current/api/rest_api/en-us/help.htm#REST/rest_api_concepts_filtering_and_sorting.htm).
32+
API help](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_filtering_and_sorting.htm).
3433

3534
## Filtering
3635

37-
To filter on a field, you need to specify the following criteria:
36+
To filter on a field, you need to specify the field name, an operator criteria and a value criteria.
3837

3938
### Operator criteria
4039

@@ -68,7 +67,7 @@ print(matching_workbooks[0].owner_id)
6867

6968
## Sorting
7069

71-
To sort on a field, you need to specify the direction in which you want to sort.
70+
To sort on a field, you need to specify the field name and the direction criteria for the sort order.
7271

7372
### Direction criteria
7473

@@ -87,4 +86,3 @@ matching_workbooks, pagination_item = server.workbooks.get(req_option)
8786
for wb in matching_workbooks:
8887
print(wb.name)
8988
```
90-

docs/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ with server.auth.sign_in(tableau_auth):
8383
print("\nThere are {} datasources on site: ".format(pagination_item.total_available))
8484
print([datasource.name for datasource in all_datasources])
8585
```
86+
8687
> `SERVER_URL` is the URL of your Tableau server without subpaths. For local Tableau servers, an example would be: `https://www.MY_SERVER.com`. For Tableau Online, an example would be: `https://10ax.online.tableau.com/`.
8788
88-
>`SITENAME` is the subpath of your full site URL (also called `contentURL` in the REST API). `MYSITE` would be the site name of `https://10ax.online.tableau.com/MYSITE`. This parameter can be omitted when signing in to the Default site of a on premise Tableau server.
89+
> `SITENAME` is the subpath of your full site URL (also called `contentURL` in the REST API). `MYSITE` would be the site name of `https://10ax.online.tableau.com/MYSITE`. This parameter can be omitted when signing in to the Default site of a on premise Tableau server.

docs/page-through-results.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Page through Results
2+
title: Page Through Results
33
layout: docs
44
---
55

66
Many of the calls that you make with the TSC library query for resources (like workbooks or data sources) on Tableau
7-
Server. Because the number of resources on Tableau Server can be very large, Tableau Server only returns the first 100
8-
resources by default. To get all of the resources on Tableau Server, you need to page through the results.
7+
Server. Because the number of resources can be very large, Tableau Server only returns the first 100
8+
resources by default. To get all of the resources, you need to page through the results.
99

1010
* TOC
1111
{:toc}
@@ -30,7 +30,7 @@ Server REST API when it runs out of resources--it does not make a call for each
3030

3131
### Set pagination options
3232

33-
You can set pagination options in the request options and then pass the request options to the `Pager` function as a
33+
You can set pagination options in a `RequestOptions` object and then pass it to the `Pager` function as a
3434
second optional parameter.
3535

3636
For example, to set the page size to 1000 use the following code:

docs/populate-connections-views.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ views or connections that make up the workbook. Similarly, when you get a data s
88
information about the connections that make up the data source. This is a result of the design of the Tableau Server
99
REST API, which optimizes the size of responses by only returning what you ask for explicitly.
1010

11-
As a result, if you want to get views and connections, you need to run the `populate_views` and `populate_connections`
11+
As a result, if you want to get views and connections, you need to call the `populate_views` and `populate_connections`
1212
functions.
1313

1414
* TOC

docs/samples.md

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -32,47 +32,32 @@ publish.
3232

3333
The following list describes the samples available in the repository:
3434

35-
* `create_group.py` Create a user group.
36-
35+
* `add_default_permission.py` Adds workbook default permissions for a given project.
36+
* `create_group.py` Creates a user group.
3737
* `create_project.py` Creates a project in a site.
38-
39-
* `create_schedules.py` Create schedules for extract refreshes and subscriptions.
40-
41-
* `download_view_image.py` Downloads an image of a specified view.
42-
38+
* `create_schedules.py` Creates schedules for extract refreshes and subscriptions.
39+
* `download_view_image.py` Downloads an image of a specified view.
4340
* `explore_datasource.py` Queries datasources, selects a datasource, populates connections for the datasource, then updates the datasource.
44-
41+
* `explore_webhooks.py` Explores webhook functions supported by the Server API.
4542
* `explore_workbook.py` Queries workbooks, selects a workbook, populates the connections and views for a workbook, then updates the workbook.
46-
47-
* `export.py` Exports a view as an image, pdf, or csv.
48-
49-
* `export_wb.py` Exports a pdf containing all views in a workbook.
50-
51-
* `filter_sort_groups.py` Demonstrates selecting user groups as filters.
52-
53-
* `initialize_server.py` Sets up an existing server instance with site, workbooks and datasources.
54-
55-
* `kill_all_jobs.py` Kills all running jobs.
56-
57-
* `list.py` Lists all datasources or workbooks of a site.
58-
59-
* `move_workbook_projects.py` Updates the properties of a workbook to move the workbook from one project to another.
60-
43+
* `export.py` Exports a view as an image, PDF, or CSV.
44+
* `export_wb.py` Exports a PDF containing all views in a workbook.
45+
* `filter_sort_groups.py` Demonstrates filtering and sorting user groups.
46+
* `filter_sort_projects.py` Demonstrates filtering and sorting projects.
47+
* `initialize_server.py` Sets up an existing server instance with site, workbooks and datasources.
48+
* `kill_all_jobs.py` Kills all running jobs.
49+
* `list.py` Lists all datasources or workbooks of a site.
50+
* `login.py` Demonstrates logging in to the server with either username/password or personal access token.
51+
* `move_workbook_projects.py` Moves a workbook from one project to another.
6152
* `move_workbook_sites.py` Downloads a workbook, stores it in-memory, and uploads it to another site.
62-
63-
* `pagination_sample.py` Use the Pager generator to iterate over all the items on the server.
64-
65-
* `publish_workbook.py` Publishes a Tableau workbook.
66-
53+
* `pagination_sample.py` Uses the Pager generator to iterate over all the items on the server.
54+
* `publish_datasource.py` Publishes a datasource to a server.
55+
* `publish_workbook.py` Publishes a workbook to a server.
56+
* `query_permissions.py` Queries permissions of a given resource.
6757
* `refresh.py` Refreshes a datasource or workbook.
68-
6958
* `refresh_tasks.py` Lists and runs configured tasks on a server.
59+
* `set_http_options.py` Demonstrates HTTP options for the server and specifically for downloading workbooks.
60+
* `set_refresh_schedule.py` Sets the schedule to refresh a workbook or datasource.
61+
* `update_connection.py` Updates and embeds connection credentials of a datasource.
7062

71-
* `set_http_options.py` Sets HTTP options for the server and specifically for downloading workbooks.
72-
73-
* `set_refresh_schedule.py` Sets the schedule to refresh a datasource or workbook.
74-
75-
* `update_connection.py` Updates and embeds connection credentials of a datasource.
76-
77-
**Note**: For all of the samples, ensure that your Tableau Server user account has permission to access the resources.
78-
63+
**Note**: For all of the samples, ensure that your Tableau Server user account has permission to access the resources. Also keep in mind that some example operations (like create group) are not allowed on Tableau Online.

0 commit comments

Comments
 (0)