From 2abed3c1b84e84482bf5e25b8cc1c88cdec98950 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 23 Jun 2020 21:20:04 +0000 Subject: rest-api (23jun20) git-svn-id: svn://tug.org/texlive/trunk@55639 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/rest-api/rest-api.dtx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/source/latex/rest-api') diff --git a/Master/texmf-dist/source/latex/rest-api/rest-api.dtx b/Master/texmf-dist/source/latex/rest-api/rest-api.dtx index fa195fdf789..db450b183ba 100644 --- a/Master/texmf-dist/source/latex/rest-api/rest-api.dtx +++ b/Master/texmf-dist/source/latex/rest-api/rest-api.dtx @@ -22,7 +22,7 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{rest-api} %<*package> - [2020/03/22 v1.2 rest-api package] + [2020/06/23 v1.3 rest-api package] % % %<*driver> @@ -59,6 +59,7 @@ % Right brace \} Tilde \~} % % +% \changes{v1.3}{2020/06/23}{Fix typo and table coloring after apiRoute block} % \changes{v1.2}{2020/03/22}{Corrections for CTAN, rename to rest-api} % \changes{v1.1}{2020/03/21}{Add documentation and usage} % \changes{v1.0}{2020/02/18}{Converted to DTX file} @@ -121,7 +122,7 @@ \begin{lstlisting}[frame=single,breaklines=true] \begin{apiRoute}{get}{/api/storage/}{get a list of all storage's} \begin{routeParameter} - \noRouteParamter{no parameter} + \noRouteParameter{no parameter} \end{routeParameter} \begin{routeResponse}{application/json} \begin{routeResponseItem}{200}{ok} @@ -155,7 +156,7 @@ \begin{lstlisting}[frame=single,breaklines=true] \begin{apiRoute}{get}{/api/storage/}{} \begin{routeParameter} - \noRouteParamter{no parameter} + \noRouteParameter{no parameter} \end{routeParameter} \begin{routeResponse}{application/json} \noRouteResponse{no response} @@ -173,7 +174,7 @@ \begin{lstlisting}[frame=single,breaklines=true] \begin{apiRoute}{post}{/api/storage/}{create a new storage} \begin{routeParameter} - \noRouteParamter{no parameter} + \noRouteParameter{no parameter} \end{routeParameter} \begin{routeRequest}{application/json} \begin{routeRequestBody} @@ -327,12 +328,12 @@ % \DescribeEnv{routeParameter} % Describe the path parameter. % Contains a list of \textbackslash routeParamItem commands. -% If no paramters excists you can use the command \textbackslash noRouteParamter. +% If no paramters excists you can use the command \textbackslash noRouteParameter. % % \DescribeMacro{\routeParamItem} % Describe a parameter with name and describtion. % -% \DescribeMacro{\noRouteParamter} +% \DescribeMacro{\noRouteParameter} % Show a text e.g. 'no parameter'. % % \DescribeEnv{routeResponse} @@ -751,6 +752,7 @@ % \begin{macrocode} \newenvironment{apiRoute}[3] { + \global\let\saved@CT@arc@\CT@arc@ \newcommand{\method}{#1} \newcommand{\urlPath}{#2} \newcommand{\routeDescription}{#3} @@ -847,6 +849,7 @@ { \end{mdframed} \endgroup + \global\let\CT@arc@\saved@CT@arc@ } % \end{macrocode} % @@ -884,7 +887,7 @@ { \rowcolor{\methodLightColor} ##1 & ##2 \\ } - \newcommand{\noRouteParamter}[1] + \newcommand{\noRouteParameter}[1] { \small{\textit{##1}} } -- cgit v1.2.3