|
38 | 38 | ## Setup |
39 | 39 |
|
40 | 40 | ```shell |
41 | | -pip install --upgrade 'git+https://github.com/crate-workbench/hubspot-tech-writing' |
| 41 | +pip install --upgrade hubspot-tech-writing |
42 | 42 | ``` |
43 | 43 |
|
44 | 44 | After installation, you can verify if it was successful. |
@@ -76,23 +76,30 @@ hstw linkcheck https://github.com/crate-workbench/hubspot-tech-writing/raw/main/ |
76 | 76 |
|
77 | 77 | ### HubSpot Upload |
78 | 78 |
|
79 | | -Uploading to HubSpot is mostly an iterative process, so will likely need to use the |
80 | | -program multiple times. In order ease invocation, we recommend to define an |
81 | | -environment variable for storing your access token. |
| 79 | +Uploading to HubSpot is mostly an iterative process, so you will most likely need to use the |
| 80 | +program multiple times on the same resource. In order ease invocation, we recommend to define |
| 81 | +an environment variable for storing your access token to the HubSpot API. |
82 | 82 | ```shell |
83 | 83 | export HUBSPOT_ACCESS_TOKEN=pat-na1-e8805e92-b7fd-5c9b-adc8-2299569f56c2 |
84 | 84 | ``` |
85 | 85 |
|
| 86 | +Upload HTML file from workstation. |
| 87 | +The name of the blog post will be derived from the file name. |
86 | 88 | ```shell |
87 | | -# Upload HTML file from workstation. |
88 | | -# The name of the blog post will be derived from the file name. |
89 | 89 | hstw upload testdrive.html |
90 | 90 | ``` |
| 91 | + |
| 92 | +Upload PNG image from workstation to folder path on hubfs. |
91 | 93 | ```shell |
92 | | -# Upload PNG image from workstation to folder path on hubfs. |
93 | 94 | hstw upload testdrive.png --folder-path=/foo/bar |
94 | 95 | ``` |
95 | 96 |
|
| 97 | +Convert Markdown to HTML, upload the document under a different name, and also upload all |
| 98 | +referenced images. |
| 99 | +```shell |
| 100 | +hstw upload /path/to/document.md --name=a-different-name --folder-path=/blog/2023/topic |
| 101 | +``` |
| 102 | + |
96 | 103 | For more detailed information about this feature, please refer to the inline help: |
97 | 104 | ```shell |
98 | 105 | hstw upload --help |
|
0 commit comments