Skip to content

Commit

Permalink
fix: rename lanlin PR pkg name
Browse files Browse the repository at this point in the history
  • Loading branch information
nonacosa committed Nov 25, 2024
1 parent 8a26c13 commit 96daeff
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NOTION_SECRET=your notion secret
NOTION_SECRET=secret_yLMOskHFNSdMCHewcaLFR38dgzwCx5IZriT14bI9XAJ
2 changes: 1 addition & 1 deletion .github/workflows/notion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
mkdir -p ./content
touch ./content/temp-"$RANDOM".md
- name: notion-site
uses: lanlin/notion-site@master
uses: nonacosa/notion-site@master
env:
NOTION_SECRET : ${{ secrets.NOTION_SECRET }}
- name: Commit files
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tmp/
build
bin/
web/
.env
.env.local
.coverprofile
config.yaml
Expand Down
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ builds:
main: ./main.go
ldflags:
- -s -w
- -X github.com/lanlin/{{ .ProjectName }}/cmd.release={{.Version}}
- -X github.com/lanlin/{{ .ProjectName }}/cmd.commit={{.Commit}}
- -X github.com/lanlin/{{ .ProjectName }}/cmd.repo={{.GitURL}}
- -X github.com/nonacosa/{{ .ProjectName }}/cmd.release={{.Version}}
- -X github.com/nonacosa/{{ .ProjectName }}/cmd.commit={{.Commit}}
- -X github.com/nonacosa/{{ .ProjectName }}/cmd.repo={{.GitURL}}
goos:
- linux
- darwin
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 lanlin
Copyright (c) 2024 nonacosa

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# notion-site


[![](https://img.shields.io/github/v/release/lanlin/notion-site.svg)](https://github.com/lanlin/notion-site/releases)
[![](https://img.shields.io/github/license/lanlin/notion-site.svg)](https://github.com/lanlin/notion-site/blob/master/LICENSE)
[![](https://img.shields.io/github/v/release/nonacosa/notion-site.svg)](https://github.com/nonacosa/notion-site/releases)
[![](https://img.shields.io/github/license/nonacosa/notion-site.svg)](https://github.com/nonacosa/notion-site/blob/master/LICENSE)

**notion-site** is an open source software for a custom website based on [Notion](https://www.notion.so/) and [Hugo](https://gohugo.io/), and you can find your favorite template as your blog or documentation site among the hundreds of templates in the [Hugo Template Store](https://themes.gohugo.io/).

Expand All @@ -25,7 +25,7 @@
### Unix system install

```bash
curl -sSf https://raw.githubusercontent.com/lanlin/notion-site/master/install.sh | sh
curl -sSf https://raw.githubusercontent.com/nonacosa/notion-site/master/install.sh | sh
```


Expand All @@ -42,7 +42,7 @@ notion-site

### Github Action

> The installation command tool is helpful for local debugging. If you do not want to debug locally, you can also copy the configuration file to your project and run it directly through GitHubAction. You can see the example config in [notion-site-doc](https://github.com/lanlin/notion-site-doc/blob/main/.github/workflows/builder.yml).
> The installation command tool is helpful for local debugging. If you do not want to debug locally, you can also copy the configuration file to your project and run it directly through GitHubAction. You can see the example config in [notion-site-doc](https://github.com/nonacosa/notion-site-doc/blob/main/.github/workflows/builder.yml).
To use it as a Github Action, you can use the template of the repository
in [.github/worflows/notion.yml](.github/workflows/notion.yml).
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: notion-site
author: lanlin
author: nonacosa
description: Build an efficient blog or content Sites based on Notion and Hugo
branding:
icon: inbox
Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/lanlin/notion-site/pkg"
"github.com/nonacosa/notion-site/pkg"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"fmt"
"github.com/joho/godotenv"
"github.com/lanlin/notion-site/pkg"
"github.com/nonacosa/notion-site/pkg"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"log"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/lanlin/notion-site
module github.com/nonacosa/notion-site

go 1.23

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Darwin*)
;;
esac
bin_dir="/usr/local/bin"
url=$(curl -s https://api.github.com/repos/lanlin/notion-site/releases/latest | grep "browser_download_url.*${arch}.tar.gz\"" | cut -d : -f 2,3 | tr -d '\"[:space:]')
url=$(curl -s https://api.github.com/repos/nonacosa/notion-site/releases/latest | grep "browser_download_url.*${arch}.tar.gz\"" | cut -d : -f 2,3 | tr -d '\"[:space:]')

echo "${DARK}"
echo "Configuration: [${arch}]"
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/lanlin/notion-site/cmd"
import "github.com/nonacosa/notion-site/cmd"

func main() {
cmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion notion-site.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
notion:
databaseId: your notion database id
databaseId: df7fb0e4e0114268b973f9d3e9a39982
filterProp: Status
filterValue:
- Finished
Expand Down

0 comments on commit 96daeff

Please sign in to comment.