From 0fa7612961131fe2584f4505225bff321296ba10 Mon Sep 17 00:00:00 2001
From: Anuar Ustayev
Date: Sun, 16 Jan 2022 12:04:17 +0600
Subject: [PATCH] [setup][s]: move deploy tutorial under learn section.
---
site/content/learn.md | 8 +++++++-
.../{publish.md => learn/deploy-to-gh-pages.md} | 14 +++++++-------
site/pages/index.js | 14 --------------
3 files changed, 14 insertions(+), 22 deletions(-)
rename site/content/{publish.md => learn/deploy-to-gh-pages.md} (90%)
diff --git a/site/content/learn.md b/site/content/learn.md
index f899d8d6..0f135709 100644
--- a/site/content/learn.md
+++ b/site/content/learn.md
@@ -68,5 +68,11 @@ Let’s check to see if it’s working. Open http://localhost:3000 from your bro
## Next steps
+Learn how to use Portal.js for your frictionless dataset or CKAN catalog:
+
+* Learn how to build a portal for a single frictionless dataset - [learn/single-frictionless-dataset](/learn/single-frictionless-dataset).
* Learn how to use Portal.js as a frontend for CKAN - [learn/ckan](/learn/ckan).
-* Learn how to build a portal for a single frictionless dataset - [learn/single-frictionless-dataset](/learn/single-frictionless-dataset)
\ No newline at end of file
+
+Learn how to deploy your data on GitHub using Portal.js:
+
+* Deploy to GitHub Pages - [learn/deploy-to-gh-pages](/learn/deploy-to-gh-pages).
\ No newline at end of file
diff --git a/site/content/publish.md b/site/content/learn/deploy-to-gh-pages.md
similarity index 90%
rename from site/content/publish.md
rename to site/content/learn/deploy-to-gh-pages.md
index 78b82411..36a6319c 100644
--- a/site/content/publish.md
+++ b/site/content/learn/deploy-to-gh-pages.md
@@ -1,10 +1,10 @@
-# Publishing data on Github using Portal.js and Github pages
+# Deploying data on Github using Portal.js and Github pages
---
**Use Case:**
---
-You have some data in a Github repo and you'd like to publish it online using "portal" so that it is easy for others to view, explore and use.
+You have some data in a Github repo and you'd like to deploy it online using "portal" so that it is easy for others to view, explore and use.
---
-Here we show how you can use portal.js plus github actions to publish your dataset in minutes and keep it updated as you make changes.
+Here we show how you can use portal.js plus github actions to deploy your dataset in minutes and keep it updated as you make changes.
The example focuses on the case of a [Frictionless dataset][fd] but it works for any dataset type supported by portal.js.
@@ -16,18 +16,18 @@ We provide three options on how to do this and recommend using the first one unl
[fd]: https://frictionlessdata.io/data-packages/
-## Publish datasets automatically by setting up a github actions script
+## Deploy datasets automatically by setting up a github actions script
-The github actions below will automatically build and publish a single page, Frictionless dataset to `gh-pages` branch. Follow the steps below to achieve this:
+The github actions below will automatically build and deploy a single page, Frictionless dataset to `gh-pages` branch. Follow the steps below to achieve this:
1. Create a secret so we can automatically commit to gh-pages branch (see below)
-2. Set up the github action to build portal to your dataset and publish it (see below)
+2. Set up the github action to build portal to your dataset and deploy it (see below)
3. Wait for your page to build and then setup github pages (see below)
4. View the results: visit `https:///github.io//`
### Step 1
-In the dataset repository you want to publish, create a github secret with the name `PORTAL_REPO_NAME` and the value should be the name of the repository.
+In the dataset repository you want to deploy, create a github secret with the name `PORTAL_REPO_NAME` and the value should be the name of the repository.
See steps on creating a secret [here](https://docs.github.com/en/actions/reference/encrypted-secrets)
diff --git a/site/pages/index.js b/site/pages/index.js
index 891a0687..a27499c2 100644
--- a/site/pages/index.js
+++ b/site/pages/index.js
@@ -56,20 +56,6 @@ export default function Home() {
-
- ▸ Publish
-
- Learn how to publish data stored on Github using Portal.js and Github Pages.
-
-
- {/* Use code below to create an invisible dummy box on the right of Publish box for a good UI look. */}
-
-