Skip to content

Commit

Permalink
feat: add the logo (#39)
Browse files Browse the repository at this point in the history
* docs: update README and docs with new logos

* fix: use pandoc 2.6 for readme

* docs: update sidebar logo style
  • Loading branch information
smartcontracts authored Aug 10, 2021
1 parent 8fdd7b7 commit 31deb0f
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- uses: docker://pandoc/core:2.9
- uses: docker://pandoc/core:2.6
with:
args: --output=README.md README.rst
- run: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- uses: docker://pandoc/core:2.9
- uses: docker://pandoc/core:2.6
with:
args: --output=README.md README.rst
- run: yarn
Expand Down
29 changes: 18 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
smock
=====

.. image:: https://img.shields.io/npm/v/@defi-wonderland/smock.svg?style=flat-square
:target: https://www.npmjs.org/package/@defi-wonderland/smock

:code:`smock` is the **S**\ olidity **mock**\ ing library.
.. raw:: html

<div align="center">
<a href="https://github.com/defi-wonderland/smock">
<img src="https://user-images.githubusercontent.com/14298799/128897259-1d2c43b5-9156-425e-82e0-ab13f259e57c.gif" width="400px">
</a>
</div>
<br />
<br />

**Smock** is the **S**\ olidity **mock**\ ing library.
It's a plugin for `hardhat <https://hardhat.org>`_ that can be used to create mock Solidity contracts entirely in JavaScript (or TypeScript!).
With :code:`smock`, it's easier than ever to test your smart contracts.
With Smock, it's easier than ever to test your smart contracts.
You'll never have to write another mock contract in Solidity again.

:code:`smock` is inspired by `sinon <https://sinonjs.org>`_, `sinon-chai <https://www.chaijs.com/plugins/sinon-chai>`_, and Python's `unittest.mock <https://docs.python.org/3/library/unittest.mock.html>`_.
Although :code:`smock` is currently only compatible with `hardhat <https://hardhat.org>`_, we plan to extend support to other testing frameworks like `Truffle <https://www.trufflesuite.com/>`_.
Smock is inspired by `sinon <https://sinonjs.org>`_, `sinon-chai <https://www.chaijs.com/plugins/sinon-chai>`_, and Python's `unittest.mock <https://docs.python.org/3/library/unittest.mock.html>`_.
Although Smock is currently only compatible with `hardhat <https://hardhat.org>`_, we plan to extend support to other testing frameworks like `Truffle <https://www.trufflesuite.com/>`_.

Features
--------
Expand All @@ -34,16 +41,16 @@ Quick Start
Installation
************

You can install :code:`smock` via npm or yarn:
You can install Smock via npm or yarn:

.. code-block:: console
$ npm install @defi-wonderland/smock
npm install @defi-wonderland/smock
Basic Usage
***********

:code:`smock` is dead simple to use.
Smock is dead simple to use.
Here's a basic example of how you might use it to streamline your tests.

.. code-block:: typescript
Expand Down Expand Up @@ -72,7 +79,7 @@ Here's a basic example of how you might use it to streamline your tests.
License
-------

:code:`smock` is released under the MIT license.
Smock is released under the MIT license.
Feel free to use, modify, and/or redistribute this software as you see fit.
See the `LICENSE <https://github.com/defi-wonderland/smock/blob/main/LICENSE>`_ file for more information.

Expand Down
Binary file added docs/source/_static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/smock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,10 @@
'css/highlight.css',
'css/text.css',
'css/fakes.css'
]
]
html_logo = '_static/smock.png'
html_favicon = '_static/favicon.png'
html_theme_options = {
'logo_only': True,
'style_nav_header_background': '#1d504b',
}

0 comments on commit 31deb0f

Please sign in to comment.