pidgin/nest

e97179cd277f
Parents 3674e434f7a6
Children 535ccb248b8d
Create a short code fore repository and use it.

Due to the impending migration of all of our repos, I figured a short code
was a good way to make that migration have as little impact as possible on
nest as we now have one variable to flip. There's some other nastiness
that we'll have to deal with, but this gets the brunt of it.
--- a/hugo/content/contributing/mercurial.md Fri Aug 23 09:38:47 2019 +0000
+++ b/hugo/content/contributing/mercurial.md Fri Aug 23 05:54:49 2019 -0500
@@ -48,7 +48,7 @@
main repository:
```
-hg clone https://bitbucket.org/pidgin/main pidgin
+hg clone {{< repo pidgin >}} pidgin
```
This will give you a `pidgin` directory with the 3.0.0 development code by
--- a/hugo/content/development/version-control.md Fri Aug 23 09:38:47 2019 +0000
+++ b/hugo/content/development/version-control.md Fri Aug 23 05:54:49 2019 -0500
@@ -7,32 +7,28 @@
lastmod: 2019-02-04T02:09:43.000Z
---
-All of the source code relating to Pidgin and its libraries is hosted on
-[bitbucket.org](https://bitbucket.org) in
-[mercurial](https://www.mercurial-scm.org/) repositories at
-[bitbucket.org/pidgin](https://bitbucket.org/pidgin).
+All of the source code relating to Pidgin and its libraries is hosted in
+[mercurial](https://www.mercurial-scm.org/) repositories and are specified
+below.
### Repositories
-Pidgin itself lives in the
-[bitbucket.org/pidgin/main](https://bitbucket.org/pidgin/main) repository. This
-include Pidgin 2 on the `release-2.x.y` branch as well as Pidgin 3 on the
+Pidgin itself lives in the {{< repo link="1" name="pidgin" >}}, repository.
+This include Pidgin 2 on the `release-2.x.y` branch as well as Pidgin 3 on the
`default` branch.
The default branch has moved libgnt out to its own repository at
-[bitbucket.org/pidgin/libgnt](https://bitbucket.org/pidgin/libgnt) to make it
-more accessible to other developers. The intent here is to have it be a
-separate package on all distributions to make it more accessible to users as
-well as developers. This will help on distributions such as Slackware that
-enforce rules of one distribution package per source package.
+{{< repo link="1" name="libgnt" >}} to make it more accessible to other
+developers. The intent here is to have it be a separate package on all
+distributions to make it more accessible to users as well as developers. This
+will help on distributions such as Slackware that enforce rules of one
+distribution package per source package.
-Pidgin 3 also depends on
-[bitbucket.org/pidgin/talkatu](https://bitbucket.org/pidgin/talkatu) for
-reusable [GTK](https://www.gtk.org) widgets that are geared towards messaging
-clients.
+Pidgin 3 also depends on {{< repo link="1" name="talkatu" >}} for reusable
+[GTK](https://www.gtk.org) widgets that are geared towards messaging clients.
-Purple 3 has adopted [gplugin](https://bitbucket.org/gplugin/gplugin), which is
-a library that handles plugins in multiple langauages leveraging
+Purple 3 has adopted {{< repo link="1" name="gplugin" >}}, which is a library
+that handles plugins in multiple langauages leveraging
[gobject-introspection](https://gi.readthedocs.io/en/latest/). It currently
supports C/C++, Python, and Lua plugins, with more languages planned for the
future.
--- a/hugo/content/drafts/release-process.md Fri Aug 23 09:38:47 2019 +0000
+++ b/hugo/content/drafts/release-process.md Fri Aug 23 05:54:49 2019 -0500
@@ -68,7 +68,7 @@
1. Make sure list of translators in `pidgin/gtkdialogs.c` matches the Transifex
translations teams. (TODO: This is labor intensive and error prone. Should find a way to automate.)
1. Check there are no open tickets for this release milestone
- 1. Make sure the date and version number are correct in `ChangeLog` and
+ 1. Make sure the date and version number are correct in `ChangeLog` and
`ChangeLog.API`
1. Change version number at the top of configure.ac, set
`purple_version_suffix` ***and*** `gnt_version_suffix` to `[betaN]` for
@@ -124,7 +124,7 @@
4. `scp docs/reference/finch/html nicobar.pidgin.im:/srv/www/developer.pidgin.im/doxygen/x.y.z/finch/`
1. Update the Pidgin website
1. Change `inc/version.inc.php` (only for full releases, not for betas)
- 2. Update the ChangeLog in https://bitbucket.org/pidgin/www/ (this is used
+ 2. Update the ChangeLog in {{< repo link="1" name="www" >}} (this is used
by the release notification plugin)
1. Send announcement email to announce and packagers mailing lists (sending to
announce also sends to support and devel)
--- a/hugo/content/help/protocols/irc.md Fri Aug 23 09:38:47 2019 +0000
+++ b/hugo/content/help/protocols/irc.md Fri Aug 23 05:54:49 2019 -0500
@@ -18,13 +18,11 @@
### How do I automatically authenticate or identify on login?
Try the
-[irchelper](https://bitbucket.org/pidgin/purple-plugin-pack/src/default/irchelper/)
-plugin from the [Purple Plugin
-Pack](https://bitbucket.org/pidgin/purple-plugin-pack/). This plugin provides
-fields to enter the services bot's nickname and your services password. It also
-automatically suppresses messages from the services bots sent on connection.
-Note that this plugin _does_, in fact, work with Q on Quakenet, and networks
-that use AuthServ, not just networks that use NickServ.
+[irchelper](https://{{< repo plugin-pack >}}src/default/irchelper/)
+plugin from the {{< repo link="1" name="plugin-pack" >}}. This plugin provides
+fields to enter the services bot's nickname and your services password. It also automatically suppresses messages from the services bots sent on
+connection. Note that this plugin _does_, in fact, work with Q on Quakenet,
+and networks that use AuthServ, not just networks that use NickServ.
Alternatively, see the next question for a way using Pidgin's built in features.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hugo/data/repos.json Fri Aug 23 05:54:49 2019 -0500
@@ -0,0 +1,9 @@
+{
+ "gplugin": "bitbucket.org/gplugin/gplugin/",
+ "libgnt": "bitbucket.org/pidgin/libgnt/",
+ "nest": "bitbucket.org/pidgin/nest/",
+ "pidgin": "bitbucket.org/pidgin/main/",
+ "plugin-pack": "bitbucket.org/pidgin/purple-plugin-pack/",
+ "talkatu": "bitbucket.org/pidgin/talkatu/",
+ "www": "bitbucket.org/pidgin/www/"
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hugo/layouts/shortcodes/repo.html Fri Aug 23 05:54:49 2019 -0500
@@ -0,0 +1,9 @@
+{{- if .IsNamedParams -}}
+{{- $scheme := or (.Get "scheme") "https" -}}
+{{- $repo := .Get "name" -}}
+{{- if eq (.Get "link") "1" -}}<a href="{{print $scheme "://" (index .Site.Data.repos $repo) }}">{{- end -}}
+{{- if eq (.Get "short") "1" -}}{{- .Get "name" -}}{{- else -}}{{- index .Site.Data.repos $repo -}}{{- end -}}
+{{- if eq (.Get "link") "1" -}}</a>{{- end -}}
+{{- else -}}
+{{- index .Site.Data.repos (.Get 0) -}}
+{{- end -}}