Commit Graph

93 Commits

Author SHA1 Message Date
Gil Poiares-Oliveira c90b2b5193
contrib: docker support (#20) 2023-02-14 20:32:49 +02:00
Anirudh Oppiliappan 22cf7a4a89
templates: fix tags 2023-02-08 00:30:58 +05:30
Derek Stevens b78354aee2
tree: directories first, add size column, fix ..
Signed-off-by: Derek Stevens <nilix@nilfm.cc>
2023-02-08 00:30:57 +05:30
Derek Stevens ee800624f5
fix line count for files that don't end in a newline
Signed-off-by: Derek Stevens <nilix@nilfm.cc>
2023-02-08 00:30:51 +05:30
Daniele Sluijters ee5ab32a40 utils: Add helper to get all repos
This does a filepath.WalkDir of the config.ScanPath and tries to find
all valid git repos. It returns a list of repoInfo structs holding basic
information of each repository.
2023-02-05 12:45:46 +02:00
Daniele Sluijters ee459fce7b docs: Expand on repo.ignore
Make it clear the expectation is the paths are relative to scanPath.
2023-02-05 12:45:46 +02:00
Daniele Sluijters 8586d930a3 config: Ensure we always have an absolute path
Having this consistent across the code is handy when we're building
paths, counting separators and other path manipulation.
2023-02-05 12:45:46 +02:00
Anirudh Oppiliappan 1e7b63814f
readme: tiny thing 2023-02-05 15:17:27 +05:30
Derek Stevens de046690c0
only add go meta import tag if go.mod exists in repo root
This is a multipart message in MIME format.

Pretty self-explanitory :3

Signed-off-by: Derek Stevens <nilix@nilfm.cc>
2023-02-05 15:12:02 +05:30
Derek Stevens 3060c752f8
sort tags and deduplicate
This sorts the tags reverse-chronologically.

If any tags have the same name (shouldn't happen but it does in some of my
repos), we use whichever one is "newer".

Signed-off-by: Derek Stevens <nilix@nilfm.cc>
2023-02-05 15:11:16 +05:30
Derek Stevens e782f36f19
add style tweaks
Signed-off-by: Derek Stevens <nilix@nilfm.cc>
2023-02-05 15:10:25 +05:30
Anirudh Oppiliappan 7a512b1da6
markdown: more file exts, fix img 2022-12-26 12:04:09 +05:30
Anirudh Oppiliappan 49b8b29289
css: fix ul padding in readme 2022-12-26 11:57:00 +05:30
James Mills 95dec0f056
routes: render markdown readmes in repo index (#11) 2022-12-26 11:50:08 +05:30
Anirudh Oppiliappan 0547b04260
css: set repo desc font weight to normal 2022-12-24 16:50:44 +05:30
Anirudh Oppiliappan 5912a0bcb5
css: bottom padding in refs pre 2022-12-24 15:13:40 +05:30
Anirudh Oppiliappan 845cce8ea7
css: lose grid layout in refs 2022-12-24 15:11:48 +05:30
Anirudh Oppiliappan 08c49d4dd3
unveil: remove git executable and /dev/null 2022-12-24 15:05:04 +05:30
Anirudh Oppiliappan fa66c4faa8
git: pure go git clone 2022-12-24 14:57:44 +05:30
Anirudh Oppiliappan 983dabb33c
css: wrap refs pre 2022-12-22 21:19:00 +05:30
Anirudh Oppiliappan 30559cd9c2
readme: unveil and ideas 2022-12-22 21:15:57 +05:30
Anirudh Oppiliappan f661e6e4ce
config: add repo.ignore 2022-12-22 21:13:49 +05:30
Anirudh Oppiliappan 2b57b6e0b1
unveil: /dev/null 2022-12-22 16:24:31 +05:30
Anirudh Oppiliappan 2fe14eca63
unveil: reorder 2022-12-22 16:18:15 +05:30
Anirudh Oppiliappan d58151dbb0
css: reduce pre font size 2022-12-22 14:45:22 +05:30
Anirudh Oppiliappan a64f9d8f14
css: set pre font
lol
2022-12-22 14:31:35 +05:30
Anirudh Oppiliappan d6b8143f56
css: ui-monospace
ref: https://stackoverflow.com/a/64133415
2022-12-22 13:33:27 +05:30
Anirudh Oppiliappan 6e6648e344
unveil: add git executable 2022-12-22 11:35:32 +05:30
Anirudh Oppiliappan 0ed4b29fe0
clean up long line 2022-12-22 11:20:02 +05:30
zak 45d1c6c2ec unveil: cleanup code in main.go 2022-12-22 11:17:59 +05:30
zak 8c129f8889 unveil: log each call 2022-12-22 11:17:59 +05:30
zak 4aa8cbff32 unveil: initial commit 2022-12-22 11:17:59 +05:30
Anirudh Oppiliappan d0f5d874c5
css: change iOS mono font 2022-12-22 11:02:48 +05:30
Anirudh Oppiliappan 86eb64311c
templates: improve this & parent commit 2022-12-22 10:58:41 +05:30
phire 1375740735 Link to parent commit file version in commit view
It makes sense for [oldfile] in [oldfile]->[newfile] to link to the
previous version. This is also how cgit behaves.
2022-12-20 14:24:17 +05:30
zak e5d35c4dec css: scroll file content x-axis only
- we don't need any overflow scrolling for the y-axis.
- set overflow-x to 'auto' so that the scroll bar only shows
  when the content does overflow.
2022-12-20 07:37:27 +05:30
Anirudh Oppiliappan 42bce06630
readme: add note clarifying cloning 2022-12-19 22:33:33 +05:30
Anirudh Oppiliappan 150d81df6c
diff: scroll diff on overflow 2022-12-19 22:15:03 +05:30
Anirudh Oppiliappan 2f508f865f
add license
closes #2
2022-12-19 18:09:45 +05:30
Anirudh Oppiliappan 263a1509db
diff: show diff type 2022-12-19 18:07:13 +05:30
Anirudh Oppiliappan 194ec63d81
file: separate content and line numbers 2022-12-19 17:52:42 +05:30
Anirudh Oppiliappan 2b9b2bdb1f
css: add bg to readme/file content 2022-12-19 17:49:48 +05:30
Anirudh Oppiliappan d1a2847a26
index: turn off logging, it's too noisy 2022-12-19 17:38:21 +05:30
Anirudh Oppiliappan 203fb6c58a
readme: clarify license 2022-12-19 17:37:30 +05:30
Anirudh Oppiliappan e0e4c1ebb6
css: scroll file content 2022-12-19 17:12:42 +05:30
Alexander Cobleigh f3c20bcb27 decrease prominence of author info in ui 2022-12-19 17:02:09 +05:30
Anirudh Oppiliappan 27ed90c5eb
unveil: clarify its uselessness 2022-12-19 12:08:31 +05:30
Anirudh Oppiliappan a05244018a
git: check for binary files 2022-12-19 11:36:50 +05:30
Anirudh Oppiliappan 8ba1a9609a
add favicon 2022-12-19 11:25:49 +05:30
Anirudh Oppiliappan 9a8041a274
readme: more info 2022-12-19 10:52:16 +05:30