Skip to content

Commit

Permalink
[#1181,site][xs]: change portaljs to datahub in github repo references.
Browse files Browse the repository at this point in the history
  • Loading branch information
rufuspollock committed Jun 10, 2024
1 parent 8feb877 commit c1f2c52
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 70 deletions.
4 changes: 2 additions & 2 deletions site/content/blog/example-ckan-2021.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors: ['Luccas Mateus']
date: 2021-04-20
---

We have created a full data portal demo using PortalJS all backed by a CKAN instance storing data and metadata, you can see below a screenshot of the homepage and of an individual dataset page.
We have created a full data portal demo using DataHub PortalJS all backed by a CKAN instance storing data and metadata, you can see below a screenshot of the homepage and of an individual dataset page.

![](https://i.imgur.com/ai0VLS4.png)
![](https://i.imgur.com/3RhXOW4.png)
Expand All @@ -14,7 +14,7 @@ We have created a full data portal demo using PortalJS all backed by a CKAN inst
To create a Portal app, run the following command in your terminal:

```console
npx create-next-app -e https://github.com/datopian/portaljs/tree/main/examples/ckan
npx create-next-app -e https://github.com/datopian/datahub/tree/main/examples/ckan
```

> NB: Under the hood, this uses the tool called create-next-app, which bootstraps an app for you based on our CKAN example.
Expand Down
10 changes: 5 additions & 5 deletions site/content/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const config = {
title: 'PortalJS - The JavaScript framework for data portals.',
title: 'DataHub PortalJS - The JavaScript framework for data portals.',
description:
'PortalJS is a JavaScript framework for rapidly building rich data portal frontends using a modern frontend approach.',
'DataHub PortalJS is a JavaScript framework for rapidly building rich data portal frontends using a modern frontend approach.',
theme: {
default: 'dark',
toggleIcon: '/images/theme-button.svg',
Expand All @@ -11,7 +11,7 @@ const config = {
authorUrl: 'https://datopian.com/',
navbarTitle: {
// logo: "/images/logo.svg",
text: '🌀 PortalJS',
text: '🌀 DataHub PortalJS',
// version: "Alpha",
},
navLinks: [
Expand Down Expand Up @@ -68,8 +68,8 @@ const config = {
cardType: 'summary_large_image',
},
},
github: 'https://github.com/datopian/portaljs',
discord: 'https://discord.gg/xfFDMPU9dC',
github: 'https://github.com/datopian/datahub',
discord: 'https://discord.gg/KrRzMKU',
tableOfContents: true,
analytics: 'G-96GWZHMH57',
// editLinkShow: true,
Expand Down
6 changes: 3 additions & 3 deletions site/content/docs/examples/ckan-ssg.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Below are some screenshots:
- Create a new app with `create-next-app`:

```
npx create-next-app <app-name> --example https://github.com/datopian/portaljs/tree/main/examples/ckan-example
npx create-next-app <app-name> --example https://github.com/datopian/datahub/tree/main/examples/ckan-example
cd <app-name>
```

Expand All @@ -49,7 +49,7 @@ If yo go to any one of those pages by clicking on `More info` you will see somet

## Deployment

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fdatopian%2Fportaljs%2Ftree%2Fmain%2Fexamples%2Fckan-example&env=DMS&envDescription=URL%20For%20the%20CKAN%20Backend%20Ex%3A%20https%3A%2F%2Fdemo.dev.datopian.com)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fdatopian%2Fdatahub%2Ftree%2Fmain%2Fexamples%2Fckan-example&env=DMS&envDescription=URL%20For%20the%20CKAN%20Backend%20Ex%3A%20https%3A%2F%2Fdemo.dev.datopian.com)

By clicking on this button, you will be redirected to a page which will allow you to clone the content into your own github/gitlab/bitbucket account and automatically deploy everything.

Expand All @@ -70,6 +70,6 @@ npm run start

## Links

- [Repo](https://github.com/datopian/portaljs/tree/main/examples/ckan-example)
- [Repo](https://github.com/datopian/datahub/tree/main/examples/ckan-example)
- [Live Demo](https://ckan-example.portaljs.org)

6 changes: 3 additions & 3 deletions site/content/docs/examples/ckan.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To get a feel of the project, check out the demo at [live deployment](https://ck
Navigate to the directory in which you want to create the project folder and run the following command:

```
npx create-next-app <app-name> --example https://github.com/datopian/portaljs/tree/main/examples/ckan
npx create-next-app <app-name> --example https://github.com/datopian/datahub/tree/main/examples/ckan
cd <app-name>
```

Expand Down Expand Up @@ -56,7 +56,7 @@ If you navigate to any of the dataset pages by clicking on the dataset title you

## Deployment

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fdatopian%2Fportaljs%2Ftree%2Fmain%2Fexamples%2Fckan&env=DMS&envDescription=URL%20For%20the%20CKAN%20Backend%20Ex%3A%20https%3A%2F%2Fdemo.dev.datopian.com)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fdatopian%2Fdatahub%2Ftree%2Fmain%2Fexamples%2Fckan&env=DMS&envDescription=URL%20For%20the%20CKAN%20Backend%20Ex%3A%20https%3A%2F%2Fdemo.dev.datopian.com)

By clicking on this button, you will be redirected to a page which allows you to clone the base project into your own GitHub/GitLab/BitBucket account and automatically deploy it.

Expand Down Expand Up @@ -158,6 +158,6 @@ Thanks to TypeScript, you can get a list of all the API methods in `@portaljs/ck

## Links

- [Repo](https://github.com/datopian/portaljs/tree/main/examples/ckan)
- [Repo](https://github.com/datopian/datahub/tree/main/examples/ckan)
- [Live Demo](http://ckan.portaljs.org/)

48 changes: 0 additions & 48 deletions site/content/docs/examples/example-frictionless-dataset.md.bkp

This file was deleted.

6 changes: 3 additions & 3 deletions site/content/docs/examples/github-backed-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Run the following commands:


```bash
npx create-next-app <app-name> --example https://github.com/datopian/portaljs/tree/main/examples/github-backed-catalog
npx create-next-app <app-name> --example https://github.com/datopian/datahub/tree/main/examples/github-backed-catalog
cd <app-name>
```

Expand Down Expand Up @@ -61,7 +61,7 @@ Congratulations, your new app is now running at http://localhost:3000.

## Deployment

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fdatopian%2Fportaljs%2Ftree%2Fmain%2Fexamples%2Fgithub-backed-catalog)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fdatopian%2Fdatahub%2Ftree%2Fmain%2Fexamples%2Fgithub-backed-catalog)

By clicking on this button, you will be redirected to a page which will allow you to clone the example into your own GitHub/GitLab/BitBucket account and automatically deploy it.

Expand Down Expand Up @@ -119,5 +119,5 @@ npm run start

## Links

- [Repo](https://github.com/datopian/portaljs/tree/main/examples/github-backed-catalog)
- [Repo](https://github.com/datopian/datahub/tree/main/examples/github-backed-catalog)
- [Live Demo](https://example.portaljs.org)
2 changes: 1 addition & 1 deletion site/content/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

For now, see the examples folder in github:

https://github.com/datopian/portaljs/tree/main/examples
https://github.com/datopian/datahub/tree/main/examples
2 changes: 1 addition & 1 deletion site/content/howtos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ description: Learn more about how you can achieve different data portal features
- [[howtos/drd|How to create data-rich documents with charts and tables?]]
- [[howtos/comments|How to add user comments?]]

If you have questions about anything related to PortalJS, you're always welcome to ask our community on [GitHub Discussions](https://github.com/datopian/portaljs/discussions) or on [our chat channel on Discord](https://discord.gg/EeyfGrGu4U).
If you have questions about anything related to PortalJS, you're always welcome to ask our community on [GitHub Discussions](https://github.com/datopian/datahub/discussions) or on [our chat channel on Discord](https://discord.gg/EeyfGrGu4U).

2 changes: 1 addition & 1 deletion site/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function MyApp({ Component, pageProps }) {
<DefaultSeo
defaultTitle={siteConfig.title}
description={siteConfig.description}
titleTemplate="PortalJS - %s"
titleTemplate="DataHub PortalJS - %s"
{...siteConfig.nextSeo}
/>

Expand Down
4 changes: 2 additions & 2 deletions site/public/scripts/single-dataset-commit.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
rm -rf portal
mkdir -p portal
npx create-next-app portal -e https://github.com/datopian/portaljs/tree/main/examples/dataset-frictionless
npx create-next-app portal -e https://github.com/datopian/datahub/tree/main/examples/dataset-frictionless
mkdir portal/public/dataset

cp -a ./data portal/public/dataset
Expand All @@ -12,7 +12,7 @@ PORTAL_DATASET_PATH=$PWD"/portal/public/dataset"
export PORTAL_DATASET_PATH

mkdir -p .github && mkdir -p .github/workflows && touch .github/workflows/main.yml
curl https://raw.githubusercontent.com/datopian/portaljs/main/site/public/scripts/gh-page-builder-action.yml > .github/workflows/main.yml
curl https://raw.githubusercontent.com/datopian/datahub/main/site/public/scripts/gh-page-builder-action.yml > .github/workflows/main.yml

cd portal
assetPrefix='"/'$PORTAL_REPO_NAME'/"'
Expand Down
2 changes: 1 addition & 1 deletion site/public/scripts/single-dataset-no-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ git checkout -b gh-pages
git rm -r --cached .
rm -rf portal
mkdir -p portal
npx create-next-app portal -e https://github.com/datopian/portaljs/tree/main/examples/dataset-frictionless
npx create-next-app portal -e https://github.com/datopian/datahub/tree/main/examples/dataset-frictionless
mkdir portal/public/dataset

cp -a ./data portal/public/dataset
Expand Down

0 comments on commit c1f2c52

Please sign in to comment.