diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..3f99702 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: thomiceli diff --git a/CHANGELOG.md b/CHANGELOG.md index 44000e6..4ad4219 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,51 @@ # Changelog +## [1.6.0](https://github.com/thomiceli/opengist/compare/v1.5.3...v1.6.0) - 2024-01-04 +See here how to [update](/docs/update.md) Opengist. + +### Added +- Embedded gists (#179) +- Gist code search (#194) +- Custom URLS for gists (#183) +- Gist JSON data/metadata (#179) +- Keep default visibility when creating a gist on the UI (#155) +- Health check endpoint (#170) +- GitLab OAuth2 login (#174) +- Syntax highlighting for more file types (#176) +- Checkable Markdown checkboxes (#182) +- Config: + - Log output (#172) + - Default git branch name (#171) +- Change username setting (#190) +- Admin actions: + - Synchronize all gists previews (#191) + - Reset Git server hooks for all repositories (#191) + - Index all gists (#194) +- Translations: + - cs-CZ (#164) + - zh-TW (#166, #195) + - hu-HU (#185) + - pt-BR (#193) +- Docs (#198) + +### Changed +- Updated dependencies (#197): + - Go `1.20` -> `1.21` + - JavaScript packages + - NodeJS Docker image `18` -> `20` + - Alpine Docker image `3.17` -> `3.19` + +### Fixed +- Fix reverse proxy subpath support (#192) +- Fix undecoded gist content when going back to editing in the UI (#184) +- Fix outputting non-truncated large files for editon/zip download (#184) +- Allow dashes in usernames (#184) +- Delete SSH keys associated to deleted user (#184) +- Better error message when there is no files in gist (#184) +- Show if there is no files in gist preview (#184) +- Log parsing for the 11th empty commit (#184) +- Optimize reading gist files content (#186) + ## [1.5.3](https://github.com/thomiceli/opengist/compare/v1.5.2...v1.5.3) - 2023-11-20 ### Added - es-ES translation (#139) diff --git a/README.md b/README.md index c464d98..968d497 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,13 @@ It is similiar to [GitHub Gist](https://gist.github.com/), but open-source and c * Create public, unlisted or private snippets * [Init](/docs/usage/init-via-git.md) / Clone / Pull / Push snippets **via Git** over HTTP or SSH -* Revisions history * Syntax highlighting ; markdown & CSV support +* Search code in snippets ; browse users snippets, likes and forks +* Embed snippets in other websites +* Revisions history * Like / Fork snippets -* Search for snippets ; browse users snippets, likes and forks * Download raw files or as a ZIP archive -* OAuth2 login with GitHub, Gitea, and OpenID Connect +* OAuth2 login with GitHub, GitLab, Gitea, and OpenID Connect * Restrict or unrestrict snippets visibility to anonymous users * Docker support * [More...](/docs/index.md#features) @@ -77,9 +78,9 @@ Download the archive for your system from the release page [here](https://github ```shell # example for linux amd64 -wget https://github.com/thomiceli/opengist/releases/download/v1.5.2/opengist1.5.2-linux-amd64.tar.gz +wget https://github.com/thomiceli/opengist/releases/download/v1.6.0/opengist1.6.0-linux-amd64.tar.gz -tar xzvf opengist1.5.2-linux-amd64.tar.gz +tar xzvf opengist1.6.0-linux-amd64.tar.gz cd opengist chmod +x opengist ./opengist # with or without `--config config.yml` diff --git a/docs/index.md b/docs/index.md index fd69363..8e583ae 100644 --- a/docs/index.md +++ b/docs/index.md @@ -11,13 +11,15 @@ Written in [Go](https://go.dev), Opengist aims to be fast and easy to deploy. * Create public, unlisted or private snippets * [Init](/docs/usage/init-via-git.md) / Clone / Pull / Push snippets **via Git** over HTTP or SSH -* Revisions history * Syntax highlighting ; markdown & CSV support +* Search code in snippets ; browse users snippets, likes and forks +* Embed snippets in other websites +* Revisions history * Like / Fork snippets -* Search for snippets ; browse users snippets, likes and forks * Editor with indentation mode & size ; drag and drop files * Download raw files or as a ZIP archive -* OAuth2 login with GitHub, Gitea, and OpenID Connect +* Retrieve snippet data/metadata via a JSON API +* OAuth2 login with GitHub, GitLab, Gitea, and OpenID Connect * Avatars via Gravatar or OAuth2 providers * Light/Dark mode * Responsive UI diff --git a/docs/installation.md b/docs/installation.md index f566ad4..d0eff18 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -47,9 +47,9 @@ Download the archive for your system from the release page [here](https://github ```shell # example for linux amd64 -wget https://github.com/thomiceli/opengist/releases/download/v1.5.1/opengist1.5.1-linux-amd64.tar.gz +wget https://github.com/thomiceli/opengist/releases/download/v1.6.0/opengist1.6.0-linux-amd64.tar.gz -tar xzvf opengist1.5.1-linux-amd64.tar.gz +tar xzvf opengist1.6.0-linux-amd64.tar.gz cd opengist chmod +x opengist ./opengist # with or without `--config config.yml` diff --git a/internal/config/config.go b/internal/config/config.go index 221721c..1375173 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -17,7 +17,7 @@ import ( "gopkg.in/yaml.v3" ) -var OpengistVersion = "1.5.3" +var OpengistVersion = "1.6.0" var C *config diff --git a/templates/pages/all.html b/templates/pages/all.html index cec88e4..3783471 100644 --- a/templates/pages/all.html +++ b/templates/pages/all.html @@ -108,7 +108,7 @@
{{ if ne (len .gists) 0 }} {{ range $gist := .gists }} - {{ $nest := dict "gist" $gist "C" $.c "locale" $.locale "DisableGravatar" $.DisableGravatar "searchQuery" $.searchQuery }} + {{ $nest := dict "gist" $gist "c" $.c "locale" $.locale "DisableGravatar" $.DisableGravatar "searchQuery" $.searchQuery }} {{ template "_gist_preview" $nest }} {{ end }} diff --git a/templates/pages/search.html b/templates/pages/search.html index f70a8e4..a0dd9de 100644 --- a/templates/pages/search.html +++ b/templates/pages/search.html @@ -21,7 +21,7 @@
{{ range $gist := .gists }} - {{ $nest := dict "gist" $gist "C" $.c "locale" $.locale "DisableGravatar" $.DisableGravatar }} + {{ $nest := dict "gist" $gist "c" $.c "locale" $.locale "DisableGravatar" $.DisableGravatar }} {{ template "_gist_preview" $nest }} {{ end }}