atbcb / usab-uswds

Website for the United States Access Board, built on Federalist and USWDS.
https://www.access-board.gov
Other
5 stars 10 forks source link

ADA/ABA guide links to the standards don't work #224

Closed RSD-accessboard closed 4 years ago

RSD-accessboard commented 4 years ago

create a regular expression to link to the standards page directly to the section. Should be straightforward with the enhanced ADA version, a bit more challenging with architectural barriers act version because they on separate pages

Kathy are you comfortable with regular expressions? Or should I take on this

kengdoj commented 4 years ago

Better for you to handled this @RSD-accessboard. I don't know how to do this.

bruce-usab commented 4 years ago

This will be nice, but I think it can wait until post launch. We have six business days.

RSD-accessboard commented 4 years ago

I made some good progress with the ADA guides, but then it turns out there’s a bunch of links that don’t use the consistent formatting. I might take another stab at it or we will just have some links that work and some don’t.

Here are my notes on the regular expressions I had to create in case anyone wants to learn Hint hint

ADA Standards [ADA Standards]({{ site.baseurl }}/ada/)

To change bold to heading level in markdown search: **(.)**\ Or **(.)** (*remember to use regular expression and make sure match new line is not checked)

replace:

\1

$1

*Visual Studio code uses $'s instead of \'s

to find the 3 digit section links used in the ADA guides [[§([0-9][0-9][0-9])]((.*))] and replace with new website link [[§$1]({{ site.baseurl }}/ada/#ada-$1)]

To find the XXX.X section links used in the ADA guides [[§([0-9][0-9][0-9]).([0-9])]((.*))] and replace with new website link [[§$1.$2]({{ site.baseurl }}/ada/#ada-$1_$2)]

To find the next XXX.XX section links like 404.10 [[§([0-9][0-9][0-9]).([0-9][0-9])]((.*))] And replace with the new website link [[§$1.$2]({{ site.baseurl }}/ada/#ada-$1_$2)]

To find the XXX.X.X section links [[§([0-9][0-9][0-9]).([0-9]).([0-9])]((.*))]

and replace with [[§$1.$2.$3]({{ site.baseurl }}/ada/#ada-$1$2$3)]

ABA to find the 3 digit section links used in the ABA guides [[§F([0-9][0-9][0-9])]((.*))]

bruce-usab commented 4 years ago

Thanks for posting the regular expressions!

kengdoj commented 4 years ago

ugh i guess i'll learn how to do this :-/. I'll start with the aba guides...

kengdoj commented 4 years ago

where is the UFAS file located? it is linked from the aba ch 1 guide

RSD-accessboard commented 4 years ago

{{ site.baseurl }}/ufas/

_Pages/guidelines-standards/ufas.html

Randall Duchesneau III US Access Board 1331 F Street NW, Suite 1000 ▪ Washington DC, 20004 (202) 272-0044 duchesneau@access-board.govmailto:duchesneau@access-board.gov

Disclaimer: Technical assistance provided in this email is intended solely as informal guidance; it is neither a determination of your legal rights or responsibilities, nor a statement of the official views of the U.S. Access Board or any other federal agency. Any links to non-federal websites are provided as a courtesy and do not represent an endorsement of the linked information, products, or services.

From: Kathy Engmailto:notifications@github.com Sent: Tuesday, September 1, 2020 11:35 AM To: atbcb/usab-uswdsmailto:usab-uswds@noreply.github.com Cc: Randall Duchesneaumailto:Duchesneau@access-board.gov; Mentionmailto:mention@noreply.github.com Subject: Re: [atbcb/usab-uswds] ADA/ABA guide links to the standards don't work (#224)

where is the UFAS file located? it is linked from the aba ch 1 guide

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fatbcb%2Fusab-uswds%2Fissues%2F224%23issuecomment-684943110&data=02%7C01%7Cduchesneau%40access-board.gov%7C3bdd313886ec4a573a7e08d84e8ca405%7Cfc6093f5e55e4f93b2cf26d0822201c9%7C0%7C0%7C637345713245748039&sdata=r8ejlR9PRoQRjYCitKrNhGElgoolDt6jInLUm1%2B7%2FDE%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANJORUJN5CQYAJ37RGMWVQTSDUIDFANCNFSM4Q%0D%0A+NKG53A&data=02%7C01%7Cduchesneau%40access-board.gov%7C3bdd313886ec4a573a7e08d84e8ca405%7Cfc6093f5e55e4f93b2cf26d0822201c9%7C0%7C0%7C637345713245748039&sdata=XS%2FFi1fGx5s7i%2FP9BEtQ0wZ%2FCXRy8Br8Jynz4sG61mc%3D&reserved=0.

kengdoj commented 4 years ago

Links in the ABA guides should be good.