Re: A static site repo viewer

Tucker McKnight <[email protected]> Thu, 27 Mar 2025 18:14:38 -0600
Newsgroups gmane.comp.version-control.darcs.user
Message-ID <CAE1hpOh92jY=eTGq=9X3VvOxk3eTHVGsQuoEWq+=dG706nvmAw@mail.gmail.com>
--===============4707249802411972755==
Content-Type: multipart/alternative; boundary="0000000000006e948f06315bf586"

--0000000000006e948f06315bf586
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

> I think a =E2=80=9Cunique=E2=80=9D darcs way to handle it would be give i=
t a list of two
or more repos (branches) and let darcs compute the intersection of those
branches in the static site build.

This is interesting. Let me make sure I'm understanding that: do you mean
that it would automatically figure out where each branch deviated from the
others?

On Thu, Mar 27, 2025 at 4:56=E2=80=AFPM Max Battcher <[email protected]> wr=
ote:

> Neat!
>
> I think the =E2=80=9Cclassic=E2=80=9D darcs way to handle what=E2=80=99s =
in the static site would
> be to use a full branch (repo) for that and actual darcs push to it.
>
> I think a =E2=80=9Cunique=E2=80=9D darcs way to handle it would be give i=
t a list of two
> or more repos (branches) and let darcs compute the intersection of those
> branches in the static site build.
>
> I used to have Python app (django app) that so heavily used static caches
> it probably should have been a static site generator. Maybe I should dig =
it
> out of storage and see if had any good ideas to pass along. (Though my
> recollection is that most of its good ideas were never actually
> implemented.)
>
> Sent from my wireless telegraph. Full stop.
>
> ------------------------------
> *From:* darcs-users <[email protected]> on behalf of
> Tucker McKnight <[email protected]>
> *Sent:* Thursday, March 27, 2025 03:14
> *To:* [email protected] <[email protected]>
> *Subject:* [darcs-users] A static site repo viewer
>
> Hi! Darcs newbie here. I've been enjoying learning about it.
>
> I spent some time over the weekend working on a static site generator for
> displaying a darcs repository. It's very basic at the moment, but it does
> work, allowing you to browse files, view patches, clone, and pull a
> specific patch.
>
> It's here: https://repos.tuckerm.us/repos/eleventy-darcs
>
> Since I only learned about darcs recently, I have a question about how a
> typical darcs user would "push" their work to a static website.
>
> If you were working on multiple changes locally and only wanted one of
> those changes to show up on your website, how would you want to do that? =
I
> know that with "darcs push" you can specify which patch(es) you want to
> push. But in this case, with a static website, you aren't actually pushin=
g
> to a remote repository. The idea here is that the plain HTML pages are
> generated locally on your computer, and then you copy those HTML pages to
> your web server. Would it make sense to have a config file where you list
> specific tags and patches that should show up on the site, with a default
> option of showing all available patches? That doesn't seem all that
> different from typing "darcs push" to either send all patches or send som=
e
> specific ones. But maybe there is a more darcs-y way of doing this that I=
'm
> not familiar with.
>
> Some other notes:
>
> - It works on the darcs.net repository.
> - It takes about a minute (on my computer, at least) to generate the site
> for darcs.net.
> - The full output of "darcs log --verbose" alone is 87 megabytes.
> - The resulting HTML pages are 300+ megabytes.
>
> I plan to add features to this over the next few weekends. Would love to
> hear any suggestions people have!
>
> -Tucker
>

--0000000000006e948f06315bf586
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>&gt; I think a =E2=80=9Cunique=E2=80=9D darcs way to =
handle it would be give=20
it a list of two or more repos (branches) and let darcs compute the=20
intersection of those branches in the static site build.</div><div><br></di=
v><div>This is interesting. Let me make sure I&#39;m understanding that: do=
 you mean that it would automatically figure out where each branch deviated=
 from the others?</div></div><br><div class=3D"gmail_quote gmail_quote_cont=
ainer"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Mar 27, 2025 at 4:56=
=E2=80=AFPM Max Battcher &lt;<a href=3D"mailto:[email protected]">me@worldm=
aker.net</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D=
"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le=
ft:1ex"><div><div dir=3D"ltr">Neat!</div><div dir=3D"ltr"><br></div><div di=
r=3D"ltr">I think the =E2=80=9Cclassic=E2=80=9D darcs way to handle what=E2=
=80=99s in the static site would be to use a full branch (repo) for that an=
d actual darcs push to it.</div><div dir=3D"ltr"><br></div><div dir=3D"ltr"=
>I think a =E2=80=9Cunique=E2=80=9D darcs way to handle it would be give it=
 a list of two or more repos (branches) and let darcs compute the intersect=
ion of those branches in the static site build.</div><div dir=3D"ltr"><br><=
/div><div dir=3D"ltr">I used to have Python app (django app) that so heavil=
y used static caches it probably should have been a static site generator. =
Maybe I should dig it out of storage and see if had any good ideas to pass =
along. (Though my recollection is that most of its good ideas were never ac=
tually implemented.)</div><div id=3D"m_680875295914389318ms-outlook-mobile-=
body-separator-line" dir=3D"ltr"><br></div><div id=3D"m_680875295914389318m=
s-outlook-mobile-signature"><div dir=3D"ltr">Sent from my wireless telegrap=
h. Full stop.</div></div><div>=C2=A0</div><hr style=3D"display:inline-block=
;width:98%"><div id=3D"m_680875295914389318divRplyFwdMsg" dir=3D"ltr"><span=
 style=3D"font-family:Calibri,sans-serif"><b>From:</b>=C2=A0darcs-users &lt=
;<a href=3D"mailto:[email protected]" target=3D"_blank">d=
[email protected]</a>&gt; on behalf of Tucker McKnight &lt=
;<a href=3D"mailto:[email protected]" target=3D"_blank">tucker.mckn=
[email protected]</a>&gt;<br><b>Sent:</b>=C2=A0Thursday, March 27, 2025 03:14<=
br><b>To:</b>=C2=A0<a href=3D"mailto:[email protected]" target=3D=
"_blank">[email protected]</a> &lt;<a href=3D"mailto:darcs-users@=
lists.darcs.net" target=3D"_blank">[email protected]</a>&gt;<br><=
b>Subject:</b>=C2=A0[darcs-users] A static site repo viewer</span><div styl=
e=3D"font-family:Calibri,sans-serif">=C2=A0</div></div><div dir=3D"ltr">Hi!=
 Darcs newbie here. I&#39;ve been enjoying learning about it.</div><div dir=
=3D"ltr"><br></div><div dir=3D"ltr">I spent some time over the weekend work=
ing on a static site generator for displaying a darcs repository. It&#39;s =
very basic at the moment, but it does work, allowing you to browse files, v=
iew patches, clone, and pull a specific patch.</div><div dir=3D"ltr"><br></=
div><div dir=3D"ltr">It&#39;s here: <a href=3D"https://repos.tuckerm.us/rep=
os/eleventy-darcs" target=3D"_blank">https://repos.tuckerm.us/repos/elevent=
y-darcs</a></div><div dir=3D"ltr"><br></div><div dir=3D"ltr">Since I only l=
earned about darcs recently, I have a question about how a typical darcs us=
er would &quot;push&quot; their work to a static website.</div><div dir=3D"=
ltr"><br></div><div dir=3D"ltr">If you were working on multiple changes loc=
ally and only wanted one of those changes to show up on your website, how w=
ould you want to do that? I know that with &quot;darcs push&quot; you can s=
pecify which patch(es) you want to push. But in this case, with a static we=
bsite, you aren&#39;t actually pushing to a remote repository. The idea her=
e is that the plain HTML pages are generated locally on your computer, and =
then you copy those HTML pages to your web server. Would it make sense to h=
ave a config file where you list specific tags and patches that should show=
 up on the site, with a default option of showing all available patches? Th=
at doesn&#39;t seem all that different from typing &quot;darcs push&quot; t=
o either send all patches or send some specific ones. But maybe there is a =
more darcs-y way of doing this that I&#39;m not familiar with.</div><div di=
r=3D"ltr"><br></div><div dir=3D"ltr">Some other notes:</div><div dir=3D"ltr=
"><br></div><div dir=3D"ltr">- It works on the <a href=3D"http://darcs.net"=
 target=3D"_blank">darcs.net</a>=C2=A0repository.</div><div dir=3D"ltr">- I=
t takes about a minute (on my computer, at least) to generate the site for =
<a href=3D"http://darcs.net" target=3D"_blank">darcs.net</a>.</div><div dir=
=3D"ltr">- The full output of &quot;darcs log --verbose&quot; alone is 87 m=
egabytes.</div><div dir=3D"ltr">- The resulting HTML pages are 300+ megabyt=
es.</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">I plan to add features=
 to this over the next few weekends. Would love to hear any suggestions peo=
ple have!</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">-Tucker</div></d=
iv></blockquote></div>

--0000000000006e948f06315bf586--

--===============4707249802411972755==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
darcs-users mailing list
[email protected]
https://lists.darcs.net/mailman/listinfo/darcs-users

--===============4707249802411972755==--