~gildarts

Indianapolis, IN

https://orbital.rocks

~gildarts/inspector

Last active 2 months ago
View more

Recent activity

[RFC PATCH core.sr.ht] Fix alignment and sizing of header anchor tags 24 days ago

From gildarts to ~sircmpwn/sr.ht-dev

- Switch to `inherit` for font-size to allow the achor to change as the
  font-size of the anchor changes
- Switch to relative spacing so that the position change also adjusts
  with header text size.
- Remove margin rule that appeared to be causing issues aligning the
  header properly.
---
 srht/scss/base.scss | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/srht/scss/base.scss b/srht/scss/base.scss
index 3235e63..dd35633 100644
--- a/srht/scss/base.scss
+++ b/srht/scss/base.scss
[message trimmed]

Re: Missing spacing on top-level Markdown headings 28 days ago

From gildarts to ~sircmpwn/sr.ht-discuss

On 9/28/2020 4:12 PM, наб wrote:
> I've ported it to the SCSS and posted to sr.ht-dev@ as
>    <20200928200807.in3j63qkdcwhd4tx@tarta.nabijaczleweli.xyz>
> 

Saw the patch, looks good!

-gildarts

Re: Missing spacing on top-level Markdown headings a month ago

From gildarts to ~sircmpwn/sr.ht-discuss

On 9/25/2020 7:32 AM, Ivar Løvlie wrote:
> Would this work:
> -- >8 --
> .markdown h1 *:not(:first-child),
> -- >8 --
> 

Thinking this might be better. Should avoid matching cases where there 
is an anchor in a header other than the one wrapping the badge.

.markdown h1 img,
.markdown h2 img,
.markdown h3 img,
.markdown h4 img,

Re: [PATCH core.sr.ht] Remove extra # from toc generation a month ago

From gildarts to ~sircmpwn/sr.ht-dev

On 9/15/2020 12:09 PM, Drew DeVault wrote:
> Does this extract all of the links or just the first one?
> 

Just the first one from my testing.

```
 >>> soup = BeautifulSoup("<h1><a>#</a><a>test</a></h1>", "html5lib")
 >>> h_tag = soup.h1.extract()
 >>> print(h_tag)
<h1><a>#</a><a>test</a></h1>
 >>> h_tag.a.extract()
<a>#</a>
 >>> print(h_tag)

[PATCH core.sr.ht] Remove extra # from toc generation a month ago

From gildarts to ~sircmpwn/sr.ht-dev

Sorry for the confusion on my end with the previous patches.

---
 srht/markdown.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 55c0755..ba0ff28 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -12,7 +12,7 @@ import mistletoe as m
from mistletoe.span_token import SpanToken, RawText
import re

[message trimmed]

[PATCH core.sr.ht v3] Add aria param to a tag and remove extra # from toc a month ago

From gildarts to ~sircmpwn/sr.ht-dev

---
 srht/markdown.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 391730e..63937be 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -12,7 +12,7 @@ import mistletoe as m
from mistletoe.span_token import SpanToken, RawText
import re

SRHT_MARKDOWN_VERSION = 9
SRHT_MARKDOWN_VERSION = 10
[message trimmed]

[PATCH core.sr.ht v2] Add aria param to a tag and remove extra # from toc a month ago

From gildarts to ~sircmpwn/sr.ht-dev

---
 srht/markdown.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 391730e..2151557 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -12,7 +12,7 @@ import mistletoe as m
from mistletoe.span_token import SpanToken, RawText
import re

SRHT_MARKDOWN_VERSION = 9
SRHT_MARKDOWN_VERSION = 10
[message trimmed]

[PATCH core.sr.ht] Add aria-hidden param to anchor tag a month ago

From gildarts to ~sircmpwn/sr.ht-dev

---
 srht/markdown.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 391730e..55c0755 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -12,7 +12,7 @@ import mistletoe as m
from mistletoe.span_token import SpanToken, RawText
import re

SRHT_MARKDOWN_VERSION = 9
SRHT_MARKDOWN_VERSION = 10
[message trimmed]

[PATCH core.sr.ht] Add bare anchor tag for header link a month ago

From gildarts to ~sircmpwn/sr.ht-dev

---
 srht/markdown.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 22e8b9a..391730e 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -12,7 +12,7 @@ import mistletoe as m
from mistletoe.span_token import SpanToken, RawText
import re

SRHT_MARKDOWN_VERSION = 8
SRHT_MARKDOWN_VERSION = 9
[message trimmed]

[PATCH man.sr.ht v2] add user index view for man.sr.ht a month ago

From gildarts to ~sircmpwn/sr.ht-dev

Fixed the import issue and style problems.

---
 mansrht/app.py               |  2 +
 mansrht/blueprints/public.py | 33 +++++++++++++++
 mansrht/templates/user.html  | 81 ++++++++++++++++++++++++++++++++++++
 3 files changed, 116 insertions(+)
 create mode 100644 mansrht/blueprints/public.py
 create mode 100644 mansrht/templates/user.html

diff --git a/mansrht/app.py b/mansrht/app.py
index 8e0521f..9ba91e2 100644
--- a/mansrht/app.py
+++ b/mansrht/app.py
[message trimmed]