digger 0.5.0
dotnet tool install --global digger --version 0.5.0
dotnet new tool-manifest
dotnet tool install --local digger --version 0.5.0
#tool dotnet:?package=digger&version=0.5.0
nuke :add-package digger --version 0.5.0
Digger
A tool to pull annotations from a variety of sources and generate markdown files.
Supported sources:
Badges
Caution
You are welcome to use this tool yourself, however as .Net tools run with full trust you should read the source code and satisfy yourself that it is safe to do so on your machine.
Installing
- Ensure you have dotnet SDK installed
- run
dotnet tool add -g digger
- Obtain your Diigo API key
- Configure Environment variables
- run the tool
digger
(see Using)
Updating to latest version
- run
dotnet tool update -g digger
Removing from your system
- run
dotnet tool uninstall -g digger
Environment Variables
Digger requires the following environment variables to be set:
Key | Comment |
---|---|
DIIGO__APIKEY | Diigo API key |
DIIGO__USERNAME | Diigo Username |
DIIGO__PASSWORD | Diigo Password |
HYPOTHESIS__APITOKEN | Hypothesis API Token |
Using
Diigo
- make sure that any Diigo entries you wish to process are tagged
#toprocess
- run
digger diigo -o <relative path to my output directory
> - for each entry processed a file will be created in the directory you nominated
- Diigo entries that have been processed will have tag
#toprocess
removed and tag#processed
added - edit the resulting files to your taste in the editor of your choosing
- that's it!
Hypothes.is
- run
digger hypothesis -o <relative path to my output directory> -u <url of source page>
- a file will be created in the directory you nominated
- edit the resulting files to your taste in the editor of your choosing
Building
- clone this repo
- run
yarn install
- install VS Code
- open working copy
- install all recommended extensions
- install Versionize
- make changes on a branch
- commit using conventional commits
Install from local copy during development
If you want to test a build locally:
dotnet tool uninstall -g digger
And then from root of working copy, after build:
dotnet tool install digger -g --prerelease --add-source ./nupkg
Releasing
- assumes you have nuget installed and configured on your machine with an API key
git push
from branch- create Pull Request
- review and squash merge
git checkout master
git pull origin master
- run
versionize
git push --follow-tags origin master
dotnet pack
dotnet nuget push
Contributing
This tool is built first and foremost to solve some irritations I had in my own personal knowledge management processes. However, contributions are welcome, please open an issue first to discuss before creating a pull request.
Please follow the standard Github "contribution by forking" process.
License
This project is licenced under the MIT Licence
Acknowledgements
Initial code to communicate with the Diigo API refactored from DiigoSharp, copyright Ankit Sharma, MIT licence.
This tool also relies heavily on the following third-party libraries (aside from .Net and various standard testing libraries)
Library | Source | Author(s) | Licence |
---|---|---|---|
markdown-generator | ap0llo/markdown-generator | Andreas Grünwald and others | MIT |
CommandLineParser | commandlineparser/commandline | Giacomo Stelluti Scala & Contributors | MIT |
Html2Markdown | baynezy/Html2Markdown | Simon Baynes | Apache Licence 2.0 |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last Updated |
---|---|---|
0.5.0 | 300 | 1/4/2024 |
0.4.1 | 488 | 7/15/2022 |
0.4.0 | 454 | 7/15/2022 |
0.2.0 | 452 | 7/15/2022 |
0.2.0-beta.0 | 176 | 7/8/2022 |
0.2.0-alpha.2 | 182 | 7/7/2022 |