Bug 264899 - Update nano configuration
Summary: Update nano configuration
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-26 09:34 UTC by Muhammad Moinur Rahman
Modified: 2022-06-26 23:00 UTC (History)
1 user (show)

See Also:


Attachments
Update nano config for adoc files (2.66 KB, patch)
2022-06-26 09:34 UTC, Muhammad Moinur Rahman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Muhammad Moinur Rahman freebsd_committer 2022-06-26 09:34:02 UTC
Created attachment 234946 [details]
Update nano config for adoc files

https://docs.freebsd.org/en/books/fdp-primer/book/#editor-config-nano

section still refers to the old xml syntax. This patch updates the config to support adoc documents. Additionally:
- The syntax highlight is collected from different locations in the web
- Remove line-wrapping related stuffs as in ASCIIDOC we can have longer lines as there is a rule "one sentence per line".

I am not a super nano user so someone can suggest more changes.
Comment 1 Sergio Carlavilla Delgado freebsd_committer 2022-06-26 19:49:57 UTC
I'm gonna make the commit @crees. It's a good upgrade.
Comment 2 Chris Rees freebsd_committer 2022-06-26 19:51:18 UTC
Rather than commit, would you please give Moin approval to do so?  It'd help his record a lot.
Comment 3 Sergio Carlavilla Delgado freebsd_committer 2022-06-26 20:05:40 UTC
Of course, go ahead!
Comment 4 Chris Rees freebsd_committer 2022-06-26 22:27:49 UTC
Here you go, approved :)

I'll review the others as soon as I can, I'm sorry it's been a bit of time.
Comment 5 commit-hook freebsd_committer 2022-06-26 22:58:37 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/doc/commit/?id=4cb922f1851bea57d264724cc5a81d5b3b6fcdfa

commit 4cb922f1851bea57d264724cc5a81d5b3b6fcdfa
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-06-26 22:55:52 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-06-26 22:55:52 +0000

    Update nano config for adoc files

    en/books/fdp-primer/book/#editor-config-nano

    section still refers to the old xml syntax. This patch updates the
    config to support adoc documents. Additionally:
    - The syntax highlight is collected from different locations in the web
    - Remove line-wrapping related stuffs as in ASCIIDOC we can have longer
      lines as there is a rule "one sentence per line".

    PR:             264899
    Obtained from:  crees

 .../en/books/fdp-primer/editor-config/_index.adoc  | 53 +++++++++++++++++-----
 1 file changed, 41 insertions(+), 12 deletions(-)
Comment 6 Muhammad Moinur Rahman freebsd_committer 2022-06-26 23:00:07 UTC
(In reply to Sergio Carlavilla Delgado from comment #3)
Thanks Sergio for giving me the opportunity.

(In reply to Chris Rees from comment #4)
Thanks. Take your time.