From 3522b9bc1c520b595fa9f329ae36e604f89ff648 Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Fri, 16 Aug 2024 05:45:01 -0600 Subject: [PATCH] docs: add viewsource sphinx extension it doesn't work everywhere yet, the `.. module::` reference needs to be added everywhere --- docs/colls.rst | 2 ++ docs/conf.py | 1 + docs/flow.rst | 2 ++ docs/funcs.rst | 2 ++ 4 files changed, 7 insertions(+) diff --git a/docs/colls.rst b/docs/colls.rst index 7ea45be..2dbafc0 100644 --- a/docs/colls.rst +++ b/docs/colls.rst @@ -1,6 +1,8 @@ Collections =========== +.. module:: funcy.colls + Unite ----- diff --git a/docs/conf.py b/docs/conf.py index dd60768..98d4b98 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -31,6 +31,7 @@ 'sphinx.ext.coverage', 'sphinx.ext.intersphinx', 'sphinx.ext.autodoc', + 'sphinx.ext.viewcode', 'sphinxcontrib.jquery' ] diff --git a/docs/flow.rst b/docs/flow.rst index b14b689..20f2257 100644 --- a/docs/flow.rst +++ b/docs/flow.rst @@ -1,6 +1,8 @@ Flow ==== +.. module:: funcy.flow + .. decorator:: silent Ignore all real exceptions (descendants of :exc:`~py3:exceptions.Exception`). Handy for cleaning data such as user input:: diff --git a/docs/funcs.rst b/docs/funcs.rst index 8c14e12..95cce6a 100644 --- a/docs/funcs.rst +++ b/docs/funcs.rst @@ -1,6 +1,8 @@ Functions ========= +.. module:: funcy.funcs + .. function:: identity(x) Returns its argument.