Skip to content

Commit

Permalink
CI docs
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed Oct 29, 2023
1 parent 4d020d9 commit 2b35717
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy Docs to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
branches: ["master", "docs"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -44,6 +44,7 @@ jobs:
run: |
cd docs
rm -rf code-doc && sphinx-apidoc -o source/code-doc ../fmtree
make clean
make html
- name: Setup Pages
uses: actions/configure-pages@v3
Expand Down
12 changes: 12 additions & 0 deletions docs/source/sample.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,15 @@ Sample Code
return nodes
else:
return sorted(nodes, key=lambda node: node.get_filename())
===============
Duplicate Image
===============

This command can search for duplicate in a directory and remove them.

.. code-block:: bash
python -m fmtree.image.dup ~/Downloads/images --output_dir ./out --remove_inplace --output_json dup.json -m perceptual-hash

0 comments on commit 2b35717

Please sign in to comment.