Skip to content

Conversation

@ypid
Copy link

@ypid ypid commented Jan 22, 2017

  • Deprecate the \httplink macro as it was too inflexible and did only support links to URLs using the (legacy) HTTP schema and not the new default HTTPS. Use \link.
  • Change the format of the \homepage macro to support HTTPS homepage URLs.
    Note that you will need to update your \homepage calls to make it work with the new version.
  • Switch \social URLs to HTTPS which has long been the default for all the sites supported by \social.

Partly mechanical edit:

git ls-files -z "$(git rev-parse --show-toplevel)" | xargs --null -I '{}' find '{}' -type f -print0 | xargs --null sed --in-place --regexp-extended 's#\\isundefined\{\\@homepage\}#\\isundefined{\\@homepage@url}#g;s#\\httplink\{\\@homepage\}#\\link\[\\@homepage@text\]\{\\@homepage@url\}#g;'

Closes: #6
Related patchset: #40

There should be no reason for people to downgrade to http links just because moderncv only supports legacy URL schemes. Ref: gshakhn/resume@b8c93b9

CHANGELOG Outdated
@@ -1,3 +1,12 @@
version 2.1.0 (unreleased)
- Deprecate the \httplink macro as it was to unflexible and did only support

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍 Fixed.

- Deprecate the \httplink macro as it was too inflexible and did only support
  links to URLs using the (legacy) HTTP schema and not the new default HTTPS. Use \link.
- Change the format of the \homepage macro to support HTTPS homepage URLs.
  Note that you will need to update your \homepage calls to make it work with
  the new version.
- Switche \social URLs to HTTPS which has long been the default for all the
  sites supported by \social.

Partly mechanical edit:

```Shell
git ls-files -z "$(git rev-parse --show-toplevel)" | xargs --null -I '{}' find '{}' -type f -print0 | xargs --null sed --in-place --regexp-extended 's#\\isundefined\{\\@homepage\}#\\isundefined{\\@homepage@url}#g;s#\\httplink\{\\@homepage\}#\\link\[\\@homepage@text\]\{\\@homepage@url\}#g;'
```

Closes: xdanaux#6
Related patchset: xdanaux#40

There should be *no* reason, for people to downgrade to http links just
because moderncv only supports legacy URL schemes. Ref:
gshakhn/resume@b8c93b9
@FranklinYu
Copy link

Maybe not part of this pull request, but how about printing warnings when deprecated macros are used?

@mortenbruhn
Copy link

Anything happening to this issue ?

It would make tons of sense to deprecate the http:// scheme for the social networks macros in favour of https://.

Any reason not to adopt ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants