Skip to content

Commit

Permalink
docs: add viewsource sphinx extension
Browse files Browse the repository at this point in the history
it doesn't work everywhere yet, the `.. module::` reference needs to be added everywhere
  • Loading branch information
iloveitaly committed Aug 16, 2024
1 parent 207a781 commit 3522b9b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/colls.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Collections
===========

.. module:: funcy.colls

Unite
-----

Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
'sphinx.ext.coverage',
'sphinx.ext.intersphinx',
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinxcontrib.jquery'
]

Expand Down
2 changes: 2 additions & 0 deletions docs/flow.rst
Original file line number Diff line number Diff line change
@@ -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::
Expand Down
2 changes: 2 additions & 0 deletions docs/funcs.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Functions
=========

.. module:: funcy.funcs

.. function:: identity(x)

Returns its argument.
Expand Down

0 comments on commit 3522b9b

Please sign in to comment.