Skip to content

Add FAQ page with info on line endings - #246

Merged
WasabiFan merged 5 commits into
developfrom
add-faq
Nov 5, 2016
Merged

WasabiFan merged 5 commits into
developfrom
add-faq

Conversation

@WasabiFan

@WasabiFan WasabiFan commented Nov 5, 2016 •

Copy link
Copy Markdown
Member

I really hate reStructured Text. 😑

@ddemidov ddemidov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We also need to reference this from index.rst

Comment thread docs/faq.rst

.. code::

sed -i 's/\r//g' <file>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There used to be a dos2unix utility, not sure if it's available by default on the ev3 though.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It still exists but is not installed by default, so I decided to go with the built-in option.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

Comment thread docs/faq.rst

When I try to run my Python file from the shell or Brickman,
it throws errors or exits immediately
-----

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should be a one line title. Otherwise rst does not recognize it as such.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You can tell I was distracted while writing this 😆 Three times I wrapped this line, and three times I realized it was broken and fixed it.

@WasabiFan

Copy link
Copy Markdown
Member Author

I couldn't think of a better title for the entry, but I'm not particularly happy with this one. If you have a better idea I'd happily change it.

@ddemidov

ddemidov commented Nov 5, 2016

Copy link
Copy Markdown
Member

My script works when launched as python3 script.py but exits immediately when launched from brickman or as ./script.py?

Seems as long as the original though.

@WasabiFan

Copy link
Copy Markdown
Member Author

I like that; it explains the issue a bit more explicitly. Look good with that swap?

@WasabiFan
WasabiFan merged commit 251b3a7 into develop Nov 5, 2016
@WasabiFan
WasabiFan deleted the add-faq branch November 5, 2016 06:25
@ddemidov

ddemidov commented Nov 5, 2016

Copy link
Copy Markdown
Member

http://ev3dev-lang.readthedocs.io/projects/python-ev3dev/en/latest/faq.html

The page title misses an 'F' for me

@ddemidov

ddemidov commented Nov 5, 2016

Copy link
Copy Markdown
Member

Not sure how did I miss it during review 😮

@WasabiFan

Copy link
Copy Markdown
Member Author

251b3a7#commitcomment-19706795 Working on a fix

@WasabiFan

Copy link
Copy Markdown
Member Author

It might take me a few hours though 😆

@ddemidov

ddemidov commented Nov 5, 2016

Copy link
Copy Markdown
Member

Take your time, we want it perfect this time

@WasabiFan

Copy link
Copy Markdown
Member Author

I'm trying to link to the FAQ page from the README. How should I do that? Link to the (currently nonexistent) page on stable, or link to latest? Or maybe to the RST file on GitHub?

@ddemidov

ddemidov commented Nov 5, 2016

Copy link
Copy Markdown
Member

I am starting to think we should point the README docs badge to the latest branch, or maybe provide two badges.

The README ends up as a frontpage for readthedocs, so I don't think we should link to the latest docs from the stable README. On the other hand, the README that is shown on github is the latest one (develop). Linking to the RST file github does not seem right as well. May be link to the latest version for now, and switch it to the stable when we are ready to tag 0.8.1? We could add an issue for this and link it to 0.8.1 milestone so that we don't forget.

@WasabiFan

Copy link
Copy Markdown
Member Author

I am starting to think we should point the README docs badge to the latest branch, or maybe provide two badges.

Honestly, the idea set-up in my eyes would be to have GitHub show the master branch by default and everything would be fine, in the sense that having links to stable from the development branch is much less of an issue than the inverse because it doesn't affect the average user. However, the argument I've heard against this (which I believe is a good one) is that we want people who contribute code to do it for the develop branch. It's a difficult thing to manage over all.

May be link to the latest version for now, and switch it to the stable when we are ready to tag 0.8.1? We could add an issue for this and link it to 0.8.1 milestone so that we don't forget.

I'm thinking that that is the best option for now. I'll do it.

@ddemidov

ddemidov commented Nov 5, 2016

Copy link
Copy Markdown
Member

However, the argument I've heard against this (which I believe is a good one) is that we want people who contribute code to do it for the develop branch.

Now that github allows to switch target branches without reopening the PR, this should be less of an issue.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants