Skip to content

Commit

Permalink
[do not land] tools/go.mod: Pin to mdox, markdownfmt forks
Browse files Browse the repository at this point in the history
This temporarily pins to my forks of mdox and markdownfmt
to include the following two changes:

- bwplotka/mdox#98
- Kunde21/markdownfmt#38

These two combined add the ability for us to opt out of mdox
reformatting all Go code blocks inside Markdown files.

The .gitignore change is added because this version of mdox uses a local
sqlite cache for speed.
  • Loading branch information
abhinav committed Oct 11, 2022
1 parent 3734d3c commit 021ea79
Show file tree
Hide file tree
Showing 3 changed files with 567 additions and 242 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ coverage.txt
*.pprof
/.bin
/.cache
/bin
/bin
.mdoxcache
64 changes: 37 additions & 27 deletions tools/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ go 1.19
require (
github.com/bwplotka/mdox v0.9.0
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
golang.org/x/tools v0.1.11-0.20220513221640-090b14e8501f
golang.org/x/tools v0.1.11
honnef.co/go/tools v0.3.3
)

require (
github.com/BurntSushi/toml v1.0.0 // indirect
github.com/Kunde21/markdownfmt/v2 v2.1.1-0.20210810103848-727f02f4c51c // indirect
github.com/PuerkitoBio/goquery v1.5.1 // indirect
github.com/alecthomas/chroma v0.8.2 // indirect
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect
github.com/andybalholm/cascadia v1.2.0 // indirect
Expand All @@ -22,10 +22,13 @@ require (
github.com/antchfx/xpath v1.1.10 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/charmbracelet/glamour v0.3.0 // indirect
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 // indirect
github.com/dlclark/regexp2 v1.2.0 // indirect
github.com/bep/godartsass v0.14.0 // indirect
github.com/bep/golibsass v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/charmbracelet/glamour v0.5.0 // indirect
github.com/clbanning/mxj/v2 v2.5.6 // indirect
github.com/cli/safeexec v1.0.0 // indirect
github.com/dlclark/regexp2 v1.4.0 // indirect
github.com/efficientgo/tools/core v0.0.0-20210609125236-d73259166f20 // indirect
github.com/efficientgo/tools/extkingpin v0.0.0-20210609125236-d73259166f20 // indirect
github.com/fatih/color v1.7.0 // indirect
Expand All @@ -34,48 +37,55 @@ require (
github.com/go-logfmt/logfmt v0.5.0 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/gocolly/colly/v2 v2.1.1-0.20201013153555-8252c346cfb0 // indirect
github.com/gohugoio/hugo v0.74.3 // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99 // indirect
github.com/gohugoio/hugo v0.101.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/kennygrant/sanitize v1.2.4 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.6 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-shellwords v1.0.10 // indirect
github.com/mattn/go-sqlite3 v1.14.7 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/microcosm-cc/bluemonday v1.0.6 // indirect
github.com/mitchellh/mapstructure v1.2.2 // indirect
github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68 // indirect
github.com/muesli/termenv v0.8.1 // indirect
github.com/niklasfasching/go-org v1.3.0 // indirect
github.com/microcosm-cc/bluemonday v1.0.17 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.9.0 // indirect
github.com/niklasfasching/go-org v1.6.5 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.11.0 // indirect
github.com/prometheus/client_golang v1.12.2 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.30.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect
github.com/sergi/go-diff v1.0.0 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/afero v1.8.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/tdewolff/parse/v2 v2.6.0 // indirect
github.com/temoto/robotstxt v1.1.1 // indirect
github.com/theckman/yacspin v0.8.0 // indirect
github.com/yuin/goldmark v1.4.1 // indirect
github.com/yuin/goldmark v1.4.12 // indirect
github.com/yuin/goldmark-emoji v1.0.1 // indirect
golang.org/x/exp/typeparams v0.0.0-20220314205449-43aec2f8a4e7 // indirect
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect
golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86 // indirect
golang.org/x/net v0.0.0-20220607020251-c690dde0001d // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/appengine v1.6.6 // indirect
google.golang.org/protobuf v1.26.0-rc.1 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/Kunde21/markdownfmt/v2 => github.com/abhinav/markdownfmt/v2 v2.1.1-0.20221011193012-2d45da2f0adb

replace github.com/bwplotka/mdox => github.com/abhinav/mdox v0.9.1-0.20221011200414-b8b3b8e9db42
Loading

0 comments on commit 021ea79

Please sign in to comment.