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

formatting buttons in edit project text editor #3633

Merged
merged 3 commits into from Mar 1, 2018

Conversation

Projects
None yet
5 participants
@aasis21
Contributor

aasis21 commented Feb 18, 2018

#3629
Now, the formatting buttons now show its corresponding rst on the editor.

@davidfischer davidfischer self-requested a review Feb 21, 2018

@davidfischer davidfischer self-assigned this Feb 21, 2018

@RichardLitt RichardLitt added the Design label Feb 21, 2018

@davidfischer

This comment has been minimized.

Contributor

davidfischer commented Feb 21, 2018

Firstly, thank you very much for the first-time contribution!

This does in fact fix the RST editor and it worked for me. However, I had a question about the minified file jquery.markitup.pack.js. Did you generate this file? I don't see it when I download the editor from http://markitup.jaysalvat.com. I'm hesitant to include minified JavaScript until I can verify the source.

Ideally, this plugin should come from bower or NPM but perhaps it's best to merge this PR once we've verified the pack file and then switch to loading it from bower in a separate PR.

Edit: bower or NPM

@davidfischer

I just had the above question but this PR is very close.

@davidfischer

This comment has been minimized.

Contributor

davidfischer commented Feb 22, 2018

I'm even starting to wonder whether we need this description field at all. It only shows up on project pages and isn't really used to do anything.

@aasis21

This comment has been minimized.

Contributor

aasis21 commented Feb 23, 2018

Thanks for the review.

Regarding pack file, I did it online using the actual jquery.markitup.js file.

@aasis21

This comment has been minimized.

Contributor

aasis21 commented Feb 23, 2018

Yes, the significance of description field is another design question.

@ericholscher

This comment has been minimized.

Member

ericholscher commented Feb 26, 2018

I'd be +1 on removing it. It's a bunch of code for a small field, which most people will just be copying from a README file or similar.

Sorry to invalidate the work you did @aasis21, but if you could just remove the files, I'd be happy to commit it! Thanks for making the effort, allowing us to have this discussion.

@aasis21

This comment has been minimized.

Contributor

aasis21 commented Feb 26, 2018

No problems @ericholscher, I'd be happy to do that. So, what you are saying is to completely remove the description feature from the project. Am I right?

@agjohnson

This comment has been minimized.

Contributor

agjohnson commented Feb 27, 2018

I think this PR should be scaled back to just remove the markitup dependency. We can keep a description field for now. Removing this will be a larger chunk of work and requires us to make a design decision around this. We'll want to review the UI changes that this entails for before just removing.

I've have been wanting to get rid of this field for a long time however. I don't think we need it, or any project description on our dashboard page -- this isn't a page that readers see.

I've opened #3689 for core to discuss removing the field.

@agjohnson

I'm glad to get rid of the markitup dependency! For now, let's scale this back to just remove the markitup dependency and once we have more guidance on removing the description field we can work on that.

<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}lib/markitup/sets/sphinx/editor.css" />
{% endblock %}
{% block dash-nav-create %}active{% endblock %}

This comment has been minimized.

@agjohnson

agjohnson Feb 27, 2018

Contributor

This is a required line.

This comment has been minimized.

@aasis21

aasis21 Feb 27, 2018

Contributor

Sorry, it was removed by mistake. Thanks for pointing out.

@aasis21

This comment has been minimized.

Contributor

aasis21 commented Feb 27, 2018

Thanks, @agjohnson for clarifying the situation. I have made changes as you suggested.

@davidfischer

I'm glad to have code removed. LGTM!

@ericholscher

This comment has been minimized.

Member

ericholscher commented Mar 1, 2018

Thanks so much for this PR @aasis21! I love PR's that delete code, and this one deletes a lot :)

@ericholscher ericholscher merged commit 308879a into rtfd:master Mar 1, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@aasis21

This comment has been minimized.

Contributor

aasis21 commented Mar 1, 2018

Thanks @ericholscher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment