Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

website/fix: extending configuration files urls #844

Closed
wants to merge 1 commit into from
Closed

website/fix: extending configuration files urls #844

wants to merge 1 commit into from

Conversation

totev
Copy link

@totev totev commented Aug 30, 2020

The links to the example configuration files seem to have moved and were not working on the main website.

@vercel
Copy link

vercel bot commented Aug 30, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/formium/tsdx/qkooh8qci
✅ Preview: https://tsdx-git-fork-totev-patch-1.formium.vercel.app

@agilgur5 agilgur5 changed the title fix: example configuration files url website/fix: example configuration files url Aug 30, 2020

## ESLint

You can add your own `.eslintrc.js` to the root of your project and TSDX will **deep merge** it with [its own ESLint config](./src/createEslintConfig.ts).
You can add your own `.eslintrc.js` to the root of your project and TSDX will **deep merge** it with [its own ESLint config](../../src/createEslintConfig.ts).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't actually solve the problem, as you can see in the preview website.

These are relative URLs from the README, and they work from the README, but these files are not (and should not be) hosted on the website, so a relative URL to code will never work here

@agilgur5
Copy link
Collaborator

agilgur5 commented Aug 30, 2020

They weren't moved, rather Jared mostly copy+pasted the README into the website, which creates several inconsistencies that are not clear how they should be handled (e.g. README has been updated, website has not, no comparison section, no contributors section, relative links don't work, some new paragraphs were added exclusively to the website...).

It did not go through code review and was pushed directly to master, otherwise I would've pointed out these issues.... 😕

I'm going to assign this to @jaredpalmer to get his response as no maintenance plan was provided for the website (I'm the only active maintainer...) and all the inconsistencies create problems that confuse users like you and even me.

But per my comment, this code won't work in any case, so it does not resolve the inconsistency.

@kyarik
Copy link
Contributor

kyarik commented Aug 31, 2020

I think we can solve this problem on the website by linking directly to the files on GitHub (e.g., https://github.com/formium/tsdx/blob/master/src/createEslintConfig.ts) rather than using relative URLs.

@agilgur5
Copy link
Collaborator

agilgur5 commented Aug 31, 2020

@kyarik you can, but that means they're not 1-to-1 anymore and can't be copy+pasted without modifications. Duplicate but slightly different content is bound to get out-of-sync and already is in fact (violates DRY too)

@kyarik
Copy link
Contributor

kyarik commented Aug 31, 2020

@agilgur5 I see your point, but we can solve this issue by having absolute URLs in the README as well...

@agilgur5
Copy link
Collaborator

agilgur5 commented Aug 31, 2020

@kyarik they're not equivalent. Absolute URLs point to a specific commit-ish whereas relative URLs point to their own branch/fork/etc's code and changing the branch name or fork name has no impact on them

@agilgur5
Copy link
Collaborator

This is now blocked by a resolution for #848

@agilgur5 agilgur5 added progress: blocked solution: invalid This doesn't seem right problem: stale Issue has not been responded to in some time labels Sep 12, 2020
@agilgur5 agilgur5 mentioned this pull request Oct 16, 2020
@agilgur5 agilgur5 changed the title website/fix: example configuration files url website/fix: extending configuration files url Nov 4, 2020
@agilgur5 agilgur5 changed the title website/fix: extending configuration files url website/fix: extending configuration files urls Nov 4, 2020
@agilgur5 agilgur5 added the scope: docs Documentation could be improved. Or changes that only affect docs label Nov 4, 2020
@agilgur5 agilgur5 closed this in #923 Nov 4, 2020
@agilgur5
Copy link
Collaborator

agilgur5 commented Nov 4, 2020

Superseded by #923 which uses absolute links for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem: stale Issue has not been responded to in some time progress: blocked scope: docs Documentation could be improved. Or changes that only affect docs solution: invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants