From 3c11debc2d550e1ec945c5ebd0113666439528a0 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Thu, 31 Aug 2023 17:18:19 -0500 Subject: [PATCH] Use the Sphinx replace directive for function link references --- doc/src/epilog.inc.m4 | 10 ++++++++++ doc/src/functions/julian_to.m4 | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/src/epilog.inc.m4 b/doc/src/epilog.inc.m4 index c1197aa..231896e 100644 --- a/doc/src/epilog.inc.m4 +++ b/doc/src/epilog.inc.m4 @@ -79,6 +79,16 @@ sdb_generated_rst()dnl .. |PEOPLE| replace:: :ref:`PEOPLE ` .. |PEOPLE.Person| replace:: :ref:`Person ` + +.. Function substitutions, which exist for the same reason + as table and column name substitutions. + Note that we cleverly use the "function_" prefix so as to avoid + possible collisions with other names. + +.. |function_julian| replace:: :ref:`julian() ` +.. |function_julian_to| replace:: :ref:`julian_to() ` + + .. Substitutions, standardized phrases and sentences. .. Values diff --git a/doc/src/functions/julian_to.m4 b/doc/src/functions/julian_to.m4 index ade3e68..004089d 100644 --- a/doc/src/functions/julian_to.m4 +++ b/doc/src/functions/julian_to.m4 @@ -46,4 +46,4 @@ Description .. |julian_to_summary| replace:: Converts a julian date value to a regular date value. -|julian_to_summary| This function reverses the :ref:`julian` function. +|julian_to_summary| This function reverses the |function_julian| function. -- 2.34.1