Skip to content

Commit

Permalink
rename directory for autogenerated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gretzke committed Nov 3, 2023
1 parent b77f93b commit cdf98d8
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: mixed-line-ending
args: ["--fix=lf"]
description: Forces to replace line ending by the UNIX 'lf' character.
exclude: "^docs/html"
exclude: "^docs/autogen"
- repo: local
hooks:
- id: format
Expand All @@ -27,4 +27,4 @@ repos:
hooks:
- id: prettier
name: Format non solidity files with prettier
exclude: "^docs/html"
exclude: "^docs/autogen"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Counter
[Git Source](https://github.com/0xPolygon/foundry-template/blob/8733bac54bd9be835d614ad4c7c76632d78ceaa0/src/Counter.sol)
[Git Source](https://github.com/0xPolygon/foundry-template/blob/8d1e780e7b907a30a740d7d96eeb5db9fb0b1450/src/Counter.sol)

**Inherits:**
[ICounter](/docs/html/src/src/interface/ICounter.sol/interface.ICounter.md)
[ICounter](/docs/autogen/src/src/interface/ICounter.sol/interface.ICounter.md)


## State Variables
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ICounter
[Git Source](https://github.com/0xPolygon/foundry-template/blob/8733bac54bd9be835d614ad4c7c76632d78ceaa0/src/interface/ICounter.sol)
[Git Source](https://github.com/0xPolygon/foundry-template/blob/8d1e780e7b907a30a740d7d96eeb5db9fb0b1450/src/interface/ICounter.sol)

**Inherits:**
[IVersioned](/docs/html/src/src/interface/IVersioned.sol/interface.IVersioned.md)
[IVersioned](/docs/autogen/src/src/interface/IVersioned.sol/interface.IVersioned.md)


## Functions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# IVersioned
[Git Source](https://github.com/0xPolygon/foundry-template/blob/8733bac54bd9be835d614ad4c7c76632d78ceaa0/src/interface/IVersioned.sol)
[Git Source](https://github.com/0xPolygon/foundry-template/blob/8d1e780e7b907a30a740d7d96eeb5db9fb0b1450/src/interface/IVersioned.sol)


## Functions
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions script/util/doc_gen.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

# generate docs
forge doc -b -o docs/html
forge doc -b -o docs/autogen

# Unstage all docs where only the commit hash changed
# Get a list of all unstaged files in the directory
files=$(git diff --name-only -- 'docs/html/*')
files=$(git diff --name-only -- 'docs/autogen/*')

# Loop over each file
for file in $files; do
Expand Down

0 comments on commit cdf98d8

Please sign in to comment.