Skip to content

Commit

Permalink
pydoc url_template update
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Jun 27, 2023
1 parent da26089 commit b9c5e1c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
16 changes: 8 additions & 8 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Common functions for the GA4 Data Import API code samples.
def get_project_number(project_id: str)
```

[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/d6a7f4f354ca8587921f45596c05f894618443f5/ga4_data_import/common.py#L9)
[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/main/ga4_data_import/common.py#L9)

Get the project number from the project id.

Expand All @@ -61,7 +61,7 @@ This file contains functions for creating a Compute Engine instance and static a
def create_static_address(project_id: str, region: str, instance_name: str)
```

[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/d6a7f4f354ca8587921f45596c05f894618443f5/ga4_data_import/compute.py#L32)
[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/main/ga4_data_import/compute.py#L32)

Create a static address with the provided name, project id, and region.

Expand Down Expand Up @@ -90,7 +90,7 @@ def create_instance(instance_name: str,
service_account_email: str = "")
```

[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/d6a7f4f354ca8587921f45596c05f894618443f5/ga4_data_import/compute.py#L66)
[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/main/ga4_data_import/compute.py#L66)

Create a Compute Engine instance with the provided name, project id, zone, and bucket name.

Expand Down Expand Up @@ -119,7 +119,7 @@ def add_server_pub_key(project_id: str, zone: str, instance_name: str,
pub_key: str, username: str)
```

[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/d6a7f4f354ca8587921f45596c05f894618443f5/ga4_data_import/compute.py#L202)
[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/main/ga4_data_import/compute.py#L202)

Add the provided SSH public key to the instance metadata.

Expand All @@ -145,7 +145,7 @@ This file contains functions for interacting with Google Cloud Storage.
def create_bucket(bucket_name: str, region: str)
```

[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/d6a7f4f354ca8587921f45596c05f894618443f5/ga4_data_import/storage.py#L9)
[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/main/ga4_data_import/storage.py#L9)

Create a new bucket with the provided name in the provided project.

Expand All @@ -163,7 +163,7 @@ Create a new bucket with the provided name in the provided project.
def add_bucket_read_access(bucket_name: str, service_account_email: str)
```

[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/d6a7f4f354ca8587921f45596c05f894618443f5/ga4_data_import/storage.py#L28)
[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/main/ga4_data_import/storage.py#L28)

Add read access to the bucket for the compute service account.

Expand All @@ -186,7 +186,7 @@ Workflow deployment module to configure BigQuery export to Cloud Storage.
def deploy_workflow(project_id, region, workflow_id, service_account_email)
```

[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/d6a7f4f354ca8587921f45596c05f894618443f5/ga4_data_import/workflow.py#L20)
[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/main/ga4_data_import/workflow.py#L20)

Deploy a workflow to the project.

Expand All @@ -206,7 +206,7 @@ def deploy_scheduler(project_id, region, scheduler_id, service_account_email,
schedule, workflow_id, query, storage_path)
```

[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/d6a7f4f354ca8587921f45596c05f894618443f5/ga4_data_import/workflow.py#L90)
[[view_source]](https://github.com/max-ostapenko/ga4_data_import/blob/main/ga4_data_import/workflow.py#L90)

Deploy a trigger to the project.

Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ga4_data_import"
version = "0.1.6"
version = "0.1.60"
description = "Google Analytics 4 Data Import pipeline"
readme = "README.md"
requires-python = ">=3.7"
Expand All @@ -22,8 +22,6 @@ classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",

"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down Expand Up @@ -74,8 +72,8 @@ type = "markdown"
filename = "./docs/index.md"
render_toc = true
[tool.pydoc-markdown.renderer.source_linker]
type = "github"
repo = "max-ostapenko/ga4_data_import"
type = "git"
url_template = "https://github.com/max-ostapenko/ga4_data_import/blob/main/{path}#L{lineno}"

[tool.pylint.main]
disable = ["too-many-arguments"]

0 comments on commit b9c5e1c

Please sign in to comment.