[FE training-materials-updates] Switch to Elixir hyperlinks for source code
Michael Opdenacker
michael.opdenacker at free-electrons.com
Tue May 2 10:55:32 CEST 2017
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=61bccee3bda02bf52ed20159c843ad4eef875318
>---------------------------------------------------------------
commit 61bccee3bda02bf52ed20159c843ad4eef875318
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date: Tue May 2 10:55:32 2017 +0200
Switch to Elixir hyperlinks for source code
- Now that the Elixir URLs are frozen
Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>
>---------------------------------------------------------------
61bccee3bda02bf52ed20159c843ad4eef875318
common/beamerthemeFreeElectrons.sty | 14 +++++++-------
common/labs.sty | 6 +++---
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/common/beamerthemeFreeElectrons.sty b/common/beamerthemeFreeElectrons.sty
index cd3cb97..31e26e5 100644
--- a/common/beamerthemeFreeElectrons.sty
+++ b/common/beamerthemeFreeElectrons.sty
@@ -32,13 +32,13 @@
% Custom free-electrons commands
\newcommand{\code}[1]{{\usebeamercolor[fg]{code} \path{#1}}}
\newcommand{\codewithhash}[1]{{\usebeamercolor[fg]{code} \tt{#1}}}
-\newcommand\kfunc[1]{\href{http://lxr.free-electrons.com/ident?i=#1}{\code{#1()}}}
-\newcommand\ksym[1]{\href{http://lxr.free-electrons.com/ident?i=#1}{\code{#1}}}
-\newcommand\kstruct[1]{\href{http://lxr.free-electrons.com/ident?i=#1}{\code{struct #1}}}
-\newcommand\kfile[1]{\href{http://lxr.free-electrons.com/source/#1}{\code{#1}}}
-\newcommand\kfileversion[2]{\href{http://lxr.free-electrons.com/source/#1?v=#2}{\code{#1}}}
-\newcommand\kdir[1]{\href{http://lxr.free-electrons.com/source/#1/}{\code{#1/}}}
-\newcommand\ksubarch[1]{\href{http://lxr.free-electrons.com/source/arch/#1/}{\code{#1}}}
+\newcommand\kfunc[1]{\href{http://elixir.free-electrons.com/linux/latest/ident/#1}{\code{#1()}}}
+\newcommand\ksym[1]{\href{http://elixir.free-electrons.com/linux/latest/ident/#1}{\code{#1}}}
+\newcommand\kstruct[1]{\href{http://elixir.free-electrons.com/linux/latest/ident/#1}{\code{struct #1}}}
+\newcommand\kfile[1]{\href{http://elixir.free-electrons.com/linux/latest/source/#1}{\code{#1}}}
+\newcommand\kfileversion[2]{\href{http://elixir.free-electrons.com/linux/v#2/source/#1}{\code{#1}}}
+\newcommand\kdir[1]{\href{http://elixir.free-electrons.com/linux/latest/source/#1/}{\code{#1/}}}
+\newcommand\ksubarch[1]{\href{http://elixir.free-electrons.com/linux/latest/source/arch/#1/}{\code{#1}}}
\newcommand\kerneldoctext[1]{\href{https://kernel.org/doc/Documentation/#1}{\code{Documentation/#1}}}
\newcommand\kerneldocbook[1]{\href{https://kernel.org/doc/htmldocs/#1}{\code{DocBook/#1}} (link broken during documentation clean-up)}
\newcommand\kerneldochtml[1]{\href{https://www.kernel.org/doc/html/latest/#1.html}{\code{#1}}}
diff --git a/common/labs.sty b/common/labs.sty
index 0f31dc7..1925d38 100644
--- a/common/labs.sty
+++ b/common/labs.sty
@@ -125,9 +125,9 @@
%% characters such as _ $ or &.
\newcommand{\code}[1]
{\path{#1}}
-\newcommand\kfile[1]{\href{http://lxr.free-electrons.com/source/#1}{\code{#1}}}
-\newcommand\kdir[1]{\href{http://lxr.free-electrons.com/source/#1/}{\code{#1/}}}
-\newcommand\kfileversion[2]{\href{http://lxr.free-electrons.com/source/#1?v=#2}{\code{#1}}}
+\newcommand\kfile[1]{\href{http://elixir.free-electrons.com/linux/latest/source/#1}{\code{#1}}}
+\newcommand\kdir[1]{\href{http://elixir.free-electrons.com/linux/latest/source/#1/}{\code{#1/}}}
+\newcommand\kfileversion[2]{\href{http://elixir.free-electrons.com/linux/v#2/source/#1}{\code{#1}}}
\newcommand{\makeabout}
{
\section{About this document}
More information about the training-materials-updates
mailing list