Skip to content

Commit ca6603d

Browse files
authored
Merge pull request #1185 from ipfs/feat/renaming-go-ipfs
refactor: rename `go-ipfs` to `kubo` See ipfs/kubo#8959
2 parents a5e30e5 + 593dbc5 commit ca6603d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+6186
-5536
lines changed

.github/actions/latest-ipfs-tag/action.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: 'Find latest Kubo tag'
2+
outputs:
3+
latest_tag:
4+
description: "latest Kubo tag name"
5+
runs:
6+
using: 'docker'
7+
image: 'Dockerfile'

.github/actions/latest-ipfs-tag/entrypoint.sh renamed to .github/actions/latest-kubo-tag/entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
set -eu
33

44
# extract tag name from latest stable release
5-
REPO="ipfs/go-ipfs"
6-
LATEST_IPFS_TAG=$(curl -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${REPO}/releases/latest" | jq --raw-output ".tag_name")
5+
REPO="ipfs/kubo"
6+
LATEST_IPFS_TAG=$(curl -L -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${REPO}/releases/latest" | jq --raw-output ".tag_name")
77

88
# extract IPFS release
99
cd /tmp
1010
git clone "https://github.com/$REPO.git"
11-
cd go-ipfs
11+
cd kubo
1212

1313
# confirm tag is valid
1414
git describe --tags "${LATEST_IPFS_TAG}"
1515

16-
echo "The latest IPFS tag is ${LATEST_IPFS_TAG}"
16+
echo "The latest Kubo tag is ${LATEST_IPFS_TAG}"
1717
echo "::set-output name=latest_tag::${LATEST_IPFS_TAG}"

.github/actions/update-with-latest-versions/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Update when a new tag or a new release is available'
22
inputs:
33
latest_ipfs_tag:
4-
description: "latest go ipfs tag"
4+
description: "latest Kubo tag"
55
required: true
66
outputs:
77
updated_branch:

.github/actions/update-with-latest-versions/entrypoint.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,40 @@ set -eu
44
BRANCH=bump-documentation-to-latest-versions
55
LATEST_IPFS_TAG=$INPUT_LATEST_IPFS_TAG
66

7-
echo "The latest IPFS tag is ${LATEST_IPFS_TAG}"
7+
echo "The latest Kubo tag is ${LATEST_IPFS_TAG}"
88

99
ROOT=`pwd`
1010
git checkout -b ${BRANCH}
11-
API_FILE=`pwd`/docs/reference/http/api.md
11+
API_FILE="$(pwd)/docs/reference/kubo/rpc.md"
1212

1313

1414
# Update http api docs and cli docs
1515

1616
cd tools/http-api-docs
1717

18-
# extract go-ipfs release tag used in http-api-docs from go.mod in this repo
19-
CURRENT_IPFS_TAG=`grep 'github.com/ipfs/go-ipfs ' ./go.mod | awk '{print $2}'`
20-
echo "The currently used go-ipfs tag in http-api-docs is ${CURRENT_IPFS_TAG}"
18+
# extract kubo release tag used in http-api-docs from go.mod in this repo
19+
CURRENT_IPFS_TAG=$(grep 'github.com/ipfs/kubo ' ./go.mod | awk '{print $2}')
20+
echo "The currently used Kubo tag in http-api-docs is ${CURRENT_IPFS_TAG}"
2121

22-
# make the upgrade, if newer go-ipfs tags exist
22+
# make the upgrade, if newer Kubo tags exist
2323
if [ "$CURRENT_IPFS_TAG" = "$LATEST_IPFS_TAG" ]; then
24-
echo "http-api-docs already uses the latest go-ipfs tag."
24+
echo "http-api-docs already uses the latest Kubo tag."
2525
else
2626
# update http-api-docs
27-
sed "s/^\s*github.com\/ipfs\/go-ipfs\s\+$CURRENT_IPFS_TAG\s*$/ github.com\/ipfs\/go-ipfs $LATEST_IPFS_TAG/" go.mod > go.mod2
27+
sed "s/^\s*github.com\/ipfs\/kubo\s\+$CURRENT_IPFS_TAG\s*$/ github.com\/ipfs\/kubo $LATEST_IPFS_TAG/" go.mod > go.mod2
2828
mv go.mod2 go.mod
2929
go mod tidy
3030
make
3131
http-api-docs > "$API_FILE"
3232

3333
# update cli docs
3434
cd "$ROOT" # go back to root of ipfs-docs repo
35-
git clone https://github.com/ipfs/go-ipfs.git
36-
cd go-ipfs
35+
git clone https://github.com/ipfs/kubo.git
36+
cd kubo
3737
git fetch --all --tags
3838
git checkout "tags/$LATEST_IPFS_TAG"
3939
go install ./cmd/ipfs
40-
cd "$ROOT/docs/reference"
40+
cd "$ROOT/docs/reference/kubo"
4141
./generate-cli-docs.sh
4242
fi
4343

@@ -64,7 +64,7 @@ update_version() {
6464
cd "${ROOT}"
6565
update_version ipfs/ipfs-update current-ipfs-updater-version
6666
update_version ipfs-cluster/ipfs-cluster current-ipfs-cluster-version
67-
update_version ipfs/go-ipfs current-ipfs-version
67+
update_version ipfs/kubo current-ipfs-version
6868

6969

7070
# Push on change

.github/workflows/update-on-new-ipfs-tag.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
steps:
1212
- name: Checkout ipfs-docs
1313
uses: actions/checkout@v2
14-
- name: Find latest go-ipfs tag
14+
- name: Find latest kubo tag
1515
id: latest_ipfs
16-
uses: ./.github/actions/latest-ipfs-tag
16+
uses: ./.github/actions/latest-kubo-tag
1717
- name: Update docs
1818
id: update
1919
uses: ./.github/actions/update-with-latest-versions
@@ -26,7 +26,7 @@ jobs:
2626
github_token: ${{ secrets.GITHUB_TOKEN }}
2727
source_branch: ${{ steps.update.outputs.updated_branch }}
2828
destination_branch: "main"
29-
pr_title: "Update documentation ${{ steps.latest_ipfs.outputs.latest_tag }}"
30-
pr_body: "Release Notes: https://github.com/ipfs/go-ipfs/releases/${{ steps.latest_ipfs.outputs.latest_tag }}"
29+
pr_title: "Update release version numbers"
30+
pr_body: "This PR was opened from update-on-new-ipfs-tag.yml workflow."
3131
pr_label: "needs/triage,P0"
3232

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Write everything in using the [GitHub Flavored Markdown](https://github.github.c
6464
6565
### Project specific titles
6666

67-
When referring to projects by name, use proper noun capitalization: Go-IPFS and JS-IPFS.
67+
When referring to projects by name, use proper noun capitalization: Kubo (GO-IPFS) and JS-IPFS.
6868

69-
Cases inside code blocks refer to commands and are not capitalized: `go-ipfs` or `js-ipfs`.
69+
Cases inside code blocks refer to commands and are not capitalized: `kubo` (`go-ipfs`) or `js-ipfs`.
7070

7171
### Style and tone
7272

docs/.vuepress/config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,11 @@ module.exports = {
263263
title: 'API & CLI',
264264
path: '/reference/',
265265
children: [
266-
'/reference/go/api',
266+
'/reference/http/gateway',
267267
'/reference/js/api',
268-
'/reference/http/api',
269-
'/reference/cli'
268+
'/reference/go/api',
269+
'/reference/kubo/cli',
270+
'/reference/kubo/rpc'
270271
]
271272
},
272273
{

docs/.vuepress/redirects

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
/recent-releases/go-ipfs-0-7/install/ /install/recent-releases
5252
/recent-releases/go-ipfs-0-7/update-procedure/ /install/recent-releases
5353
/reference/api/ /reference
54-
/reference/api/cli/ /reference/cli
54+
/reference/api/cli/ /reference/kubo/cli
55+
/reference/cli/ /reference/kubo/cli
56+
/reference/kubo/ /reference
57+
/reference/http/ /reference/http/api
5558
/reference/api/http/ /reference/http/api
5659
/reference/go/overview/ /reference/go/api
5760
/reference/js/overview/ /reference/js/api

0 commit comments

Comments
 (0)