diff --git a/src/containers/action/ActionRunnerContainer.ts b/src/containers/action/ActionRunnerContainer.ts index 93b1a367..97587d96 100644 --- a/src/containers/action/ActionRunnerContainer.ts +++ b/src/containers/action/ActionRunnerContainer.ts @@ -208,7 +208,7 @@ export class ActionRunnerContainer extends Container { } else { const env = ['render_hugo', 'exec', 'commit_branch'].includes(step.uses) ? Object.assign({ CONFIG_TOML: '/site/tmp_dir/config.toml', - BASE_URL: `${process.env.DOMAIN}/preview/${driveId}/`, + BASE_URL: `${process.env.DOMAIN}/preview/${driveId}/_manual/`, GIT_AUTHOR_NAME: committer.name, GIT_AUTHOR_EMAIL: committer.email, GIT_COMMITTER_NAME: committer.name, diff --git a/website/_index.md b/website/_index.md index 0a36593d..7c019dce 100644 --- a/website/_index.md +++ b/website/_index.md @@ -15,8 +15,8 @@ WikiGDrive is a node app that uses the [Google Drive API](https://developers.goo ![Diagram](docs/diagram.svg) [Google Drive Notes](https://docs.google.com/document/d/1H6vwfQXIexdg4ldfaoPUjhOZPnSkNn6h29WD6Fi-SBY/edit#) -| [Github Project](https://github.com/mieweb/wikiGDrive/projects) -| [Github Developer Notes](docs/developer-guide.md) +| [GitHub Project](https://github.com/mieweb/wikiGDrive/projects) +| [GitHub Developer Notes](docs/developer-guide.md) With a "Shared Drive" as the key, WikiGDrive: diff --git a/website/docs/_index.md b/website/docs/_index.md index 1e07b3a5..3110f8b4 100644 --- a/website/docs/_index.md +++ b/website/docs/_index.md @@ -1,5 +1,5 @@ --- -title: _index +title: Usage navWeight: 1000 # Upper weight gets higher precedence, optional. --- # wikiGDrive diff --git a/website/docs/install.md b/website/docs/install.md index fd6b4b04..29abbcb3 100644 --- a/website/docs/install.md +++ b/website/docs/install.md @@ -17,8 +17,17 @@ npm i -g @mieweb/wikigdrive ## App setup +Across few years Google changed this process several times. + +Here are rough guidelines where to click. They will be probably changed :(. + 1. Go to [console](https://console.developers.google.com/) -2. Create New Project -3. Enable Apis -> add Google Drive API -4. Enable Apis -> Add Google Docs API -5. Credentials -> Create Credentials (OAuth Client ID) -> Other ( see authorization section ) +2. Under project download click ![New project](./install/new_project.png) +3. Add Google Drive API ![Enable Apis](./install/enable_api.png) +4. Go to ![Credentials](./install/create_credentials3.png) +5. Click ![Create Credentials](./install/create_credentials.png) +6. Select type of data to access ![](./install/credentials.png) +7. Create ![Service account](./install/service_account.png) +8. Download ![Service account key](./install/service_account_key.png) +8. Create ![Consent screen](./install/consent.png) +9. Create ![Oauth Client ID](./install/oauth.png) diff --git a/website/docs/install/consent.png b/website/docs/install/consent.png new file mode 100644 index 00000000..ef17460f Binary files /dev/null and b/website/docs/install/consent.png differ diff --git a/website/docs/install/create_credentials.png b/website/docs/install/create_credentials.png new file mode 100644 index 00000000..773b1bfa Binary files /dev/null and b/website/docs/install/create_credentials.png differ diff --git a/website/docs/install/create_credentials3.png b/website/docs/install/create_credentials3.png new file mode 100644 index 00000000..b34f085d Binary files /dev/null and b/website/docs/install/create_credentials3.png differ diff --git a/website/docs/install/credentials.png b/website/docs/install/credentials.png new file mode 100644 index 00000000..bfaa8d0d Binary files /dev/null and b/website/docs/install/credentials.png differ diff --git a/website/docs/install/enable_api.png b/website/docs/install/enable_api.png new file mode 100644 index 00000000..d45cc867 Binary files /dev/null and b/website/docs/install/enable_api.png differ diff --git a/website/docs/install/enable_api_2.png b/website/docs/install/enable_api_2.png new file mode 100644 index 00000000..a23b89e7 Binary files /dev/null and b/website/docs/install/enable_api_2.png differ diff --git a/website/docs/install/new_project.png b/website/docs/install/new_project.png new file mode 100644 index 00000000..b72d8b81 Binary files /dev/null and b/website/docs/install/new_project.png differ diff --git a/website/docs/install/oauth.png b/website/docs/install/oauth.png new file mode 100644 index 00000000..4ebcbd8d Binary files /dev/null and b/website/docs/install/oauth.png differ diff --git a/website/docs/install/service_account.png b/website/docs/install/service_account.png new file mode 100644 index 00000000..8b6d3799 Binary files /dev/null and b/website/docs/install/service_account.png differ diff --git a/website/docs/install/service_account_key.png b/website/docs/install/service_account_key.png new file mode 100644 index 00000000..07916dac Binary files /dev/null and b/website/docs/install/service_account_key.png differ