Skip to content

Commit

Permalink
[DOCS] switch to ansible sphinx theme (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
samccann authored Sep 27, 2023
1 parent cdea1e8 commit 5f5094f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# -- Project information -----------------------------------------------------

project = 'receptor'
copyright = '2021, Red Hat Ansible'
copyright = 'Red Hat Ansible'
author = 'Red Hat Ansible'

# The full version, including alpha/beta/rc tags
Expand All @@ -45,15 +45,15 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['Thumbs.db', '.DS_Store']

pygments_style = 'sphinx'
language = None
pygments_style = 'ansible'
language = 'en'
master_doc = 'index'
source_suffix = '.rst'

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
html_theme = 'sphinx_ansible_theme'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
4 changes: 3 additions & 1 deletion docs/source/developer_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ Additionally, all code must pass a suite of Go linters. There is a pre-commit ya
See https://pre-commit.com/ and https://golangci-lint.run/ for more details on installing and using these tools.

We are using gomock to generate mocks for our unit tests. The mocks are living inside of a package under the real implementation, prefixed by mock_. An example is the package mock_workceptor under pkg/workceptor.
We are using gomock to generate mocks for our unit tests. The mocks are living inside of a package under the real implementation, prefixed by ``mock_``. An example is the package mock_workceptor under pkg/workceptor.

In order to genenerate a mock for a particular file, you can run:

.. code::
mockgen -source=pkg/filename.go -destination=pkg/mock_pkg/mock_filename.go
For example, to create/update mocks for Workceptor, we can run:

.. code::
mockgen -source=pkg/workceptor/workceptor.go -destination=pkg/workceptor/mock_workceptor/workceptor.go
Source code
Expand Down
1 change: 1 addition & 0 deletions docs/source/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pbr
sphinx
sphinx-ansible-theme

0 comments on commit 5f5094f

Please sign in to comment.