Skip to content

Commit

Permalink
Move docs to readme (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
haberdashPI authored Apr 11, 2024
1 parent 41e82c5 commit 4695e66
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 141 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ jobs:
with:
version: ${{ steps.version_resolver.outputs.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/add-julia-registry@v1
- uses: actions/cache@v2
with:
key: ${{ secrets.BEACONBUDDY_SSH_KEY }}
registry: beacon-biosignals/BeaconRegistry
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-artifacts-${{ hashFiles('**/Project.toml') }}
restore-keys: ${{ runner.os }}-test-artifacts
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
annotate: true
Expand All @@ -92,10 +93,3 @@ jobs:
files: lcov.info
flags: WeakKeyIdDicts
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Percy Upload
# if: ${{ matrix.version == '1' }}
# uses: percy/[email protected]
# with:
# custom-command: "npx @percy/cli upload ./WeakKeyIdDicts.jl/test/test_images"
# env:
# PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_WEAKKEYIDDICTS }}
68 changes: 0 additions & 68 deletions .github/workflows/Documenter.yml

This file was deleted.

18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
# WeakKeyIdDicts

[![docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://beacon-biosignals.github.io/WeakKeyIdDicts.jl/dev)
[![docs](https://img.shields.io/badge/docs-stable-blue.svg)](https://beacon-biosignals.github.io/WeakKeyIdDicts.jl/stable)
[![CI](https://github.com/beacon-biosignals/WeakKeyIdDicts.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/beacon-biosignals/WeakKeyIdDicts.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![codecov](https://codecov.io/gh/beacon-biosignals/WeakKeyIdDicts.jl/branch/main/graph/badge.svg?token=IeRxFxQwG8&flag=WeakKeyIdDicts)](https://app.codecov.io/gh/beacon-biosignals/WeakKeyIdDicts.jl/tree/main)

Implements a WeakKeyIdDict which constructs a hash table where the keys are weak
references to objects that may be garbage collected even when referenced in a hash table.

It defines one type, `WeakKeyIdDict`, that follows the same API as `Dict`.

```julia
_tmp_key = [1]
wkd = WeakKeyIdDict(_tmp_key => 1)
let tmp = [42]
wkd[tmp] = 2
@show length(wkd) # 2
end
# at this point there is no strong reference left to the vector [42]
# previously reachable via tmp
GC.gc(true)

@show length(wkd) # 1
```
9 changes: 0 additions & 9 deletions codecov.yml

This file was deleted.

1 change: 0 additions & 1 deletion docs/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions docs/Project.toml

This file was deleted.

21 changes: 0 additions & 21 deletions docs/fix_doctests.jl

This file was deleted.

10 changes: 0 additions & 10 deletions docs/make.jl

This file was deleted.

13 changes: 0 additions & 13 deletions docs/src/index.md

This file was deleted.

2 comments on commit 4695e66

@haberdashPI
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/104725

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 4695e6662209744aadbecde8e016a69d92adc43e
git push origin v0.1.0

Please sign in to comment.