~sircmpwn/sr.ht-discuss

7 4

org mode syntax support for text files ?

Details
Message ID
<8830212A-2DDD-4BCA-AB0C-534D9B6B1EC7@traduction-libre.org>
DKIM signature
missing
Download raw message
Is it somewhere on the roadmap to have basic org-mode syntax support for files (including readme file)?

Most, if not all the files I work on in Emacs are documentation files written in org mode and it would be nice not to have to convert them to md to have basic display of their contents on SH.

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/
Details
Message ID
<f22ed8384a9efbb0a5356977375fff43@ntgg.io>
In-Reply-To
<8830212A-2DDD-4BCA-AB0C-534D9B6B1EC7@traduction-libre.org> (view parent)
DKIM signature
missing
Download raw message
> Is it somewhere on the roadmap to have basic org-mode syntax support for files (including readme
> files)

It has been discussed a few times before and there are no plans[1]. You are able to use an
arbitrary HTML snippet to render your readme[2] tho.

[1]https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3Cfe7aa296-9c90-463d-b4e6-50eeb7e57428%40localhost%3E#%3CC15MWAA4L1V4.37TIKIXPHV02J@homura%3E
[2]https://man.sr.ht/git.sr.ht/#setting-a-custom-readme
Details
Message ID
<38B452CD-782F-43DF-89BF-477FFDF22400@traduction-libre.org>
In-Reply-To
<f22ed8384a9efbb0a5356977375fff43@ntgg.io> (view parent)
DKIM signature
missing
Download raw message

> On Oct 2, 2021, at 14:04, noah@ntgg.io wrote:
> 
>> Is it somewhere on the roadmap to have basic org-mode syntax support for files (including readme
>> files)
> 
> It has been discussed a few times before and there are no plans[1].

Ok. It makes sense. Thank you for the pointer.

> You are able to use an
> arbitrary HTML snippet to render your readme[2] tho.

I eventually just remembered that HTML was MD compatible... So exporting to HTML with org-export-dispatch, changing the extension to .md and making a few edits actually works. Quite an ugly hack but it is good enough.

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/
Details
Message ID
<CEOOWK8HHDXM.3H041OJHHL81@taiga>
In-Reply-To
<38B452CD-782F-43DF-89BF-477FFDF22400@traduction-libre.org> (view parent)
DKIM signature
missing
Download raw message
On Sat Oct 2, 2021 at 7:32 AM CEST, Jean-Christophe Helary wrote:
>
>
> > On Oct 2, 2021, at 14:04, noah@ntgg.io wrote:
> > 
> >> Is it somewhere on the roadmap to have basic org-mode syntax support for files (including readme
> >> files)
> > 
> > It has been discussed a few times before and there are no plans[1].
>
> Ok. It makes sense. Thank you for the pointer.
>
> > You are able to use an
> > arbitrary HTML snippet to render your readme[2] tho.
>
> I eventually just remembered that HTML was MD compatible... So exporting
> to HTML with org-export-dispatch, changing the extension to .md and
> making a few edits actually works. Quite an ugly hack but it is good
> enough.

Follow the link Noah provided. It's to documentation of a sr.ht feature
in which you can upload HTML to an API endpoint to use as your readme
instead of using a file from your repo. Then you can configure a
builds.sr.ht job to render from whatever (e.g. org mode) into HTML and
then send it to the API.
Details
Message ID
<8735F339-AB8A-499E-B76E-FA2C37BA1CEE@traduction-libre.org>
In-Reply-To
<CEOOWK8HHDXM.3H041OJHHL81@taiga> (view parent)
DKIM signature
missing
Download raw message

> On Oct 2, 2021, at 14:59, Drew DeVault <sir@cmpwn.com> wrote:
> 
> Follow the link Noah provided.

I did.

> It's to documentation of a sr.ht feature
> in which you can upload HTML to an API endpoint to use as your readme
> instead of using a file from your repo. Then you can configure a
> builds.sr.ht job to render from whatever (e.g. org mode) into HTML and
> then send it to the API.

I have no idea what an API is, how I can make use of it, and how graphql
could be useful for my daily tasks as a writer. Right now all that is
more than a bit overwhelming, so I'll just stick to exporting org to md
on my side.

But it's definitely on my todo list to make sense of all that. Problem is,
I have no idea *where* to start.

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/
Details
Message ID
<D8B79346-D769-4D3B-995B-5B2BF1335130@traduction-libre.org>
In-Reply-To
<CEOOWK8HHDXM.3H041OJHHL81@taiga> (view parent)
DKIM signature
missing
Download raw message

> On Oct 2, 2021, at 14:59, Drew DeVault <sir@cmpwn.com> wrote:
> 
> On Sat Oct 2, 2021 at 7:32 AM CEST, Jean-Christophe Helary wrote:
>> 
>> 
>>> On Oct 2, 2021, at 14:04, noah@ntgg.io wrote:
>>> 
>>>> Is it somewhere on the roadmap to have basic org-mode syntax support for files (including readme
>>>> files)
>>> 
>>> It has been discussed a few times before and there are no plans[1].
>> 
>> Ok. It makes sense. Thank you for the pointer.
>> 
>>> You are able to use an
>>> arbitrary HTML snippet to render your readme[2] tho.
>> 
>> I eventually just remembered that HTML was MD compatible... So exporting
>> to HTML with org-export-dispatch, changing the extension to .md and
>> making a few edits actually works. Quite an ugly hack but it is good
>> enough.
> 
> Follow the link Noah provided. It's to documentation of a sr.ht feature
> in which you can upload HTML to an API endpoint to use as your readme
> instead of using a file from your repo. Then you can configure a
> builds.sr.ht job to render from whatever (e.g. org mode) into HTML and
> then send it to the API.

Also, I just discovered that org had an export library that was not loaded
by default. Problem solved! Apologies for the noise.

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/
Details
Message ID
<46A98BED-A9CD-4142-9255-E455C44ED0A3@gmail.com>
In-Reply-To
<8735F339-AB8A-499E-B76E-FA2C37BA1CEE@traduction-libre.org> (view parent)
DKIM signature
missing
Download raw message
>I have no idea what an API is

It's an initialism which stands for Application Programming Interface. It's a way for a program you write to hook into a different program or service. Usually this takes the form of a web service which has   specifically formatted URL's (called endpoints) that allow you to perform specific actions. In this case, it would allow you to upload semi-arbitrary HTML to load as your project's README rather than use a file from the repository for that purpose.

> and how graphql could be useful for my daily tasks as a writer.

It probably wouldn't be. Graphql is a technology which is designed to make writing and using API's easier. If you don't frequently use API's, it'll be of limited value to you. 

If you're still curious, the main documentation for the technology itself is here:
https://graphql.org
Details
Message ID
<AA86060B-C5C0-4457-BA98-973A077D1770@traduction-libre.org>
In-Reply-To
<46A98BED-A9CD-4142-9255-E455C44ED0A3@gmail.com> (view parent)
DKIM signature
missing
Download raw message

> On Oct 2, 2021, at 22:39, Chris McGowan <cmcgowan9990@gmail.com> wrote:
> 
>> I have no idea what an API is
> 
> It's an initialism which stands for Application Programming Interface. It's a way for a program you write to hook into a different program or service. Usually this takes the form of a web service which has   specifically formatted URL's (called endpoints) that allow you to perform specific actions. In this case, it would allow you to upload semi-arbitrary HTML to load as your project's README rather than use a file from the repository for that purpose.
> 
>> and how graphql could be useful for my daily tasks as a writer.
> 
> It probably wouldn't be. Graphql is a technology which is designed to make writing and using API's easier. If you don't frequently use API's, it'll be of limited value to you. 

Thank you Chris for the explanations.

I write a lot of org data, I have the choice between exporting them to md and committing them to the sr.ht wiki or repository readme, or going the HTML+graphql route.

> If you're still curious, the main documentation for the technology itself is here:
> https://graphql.org

https://graphql.org/learn/

I'm always curious and I do write a bit of code and a fair bit of html/css, but there was literally *nothing* there that made any sense to me.



-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/
Reply to thread Export thread (mbox)