tutorial icon indicating copy to clipboard operation
tutorial copied to clipboard

Directory listings format looks similar to commands / output

Open brondsem opened this issue 7 years ago • 5 comments

Some coders have commented that the directory structures shown in the tutorial can be confusing because they look like commands / command output, but they don't show up in the terminal. Example:

screenshot 2018-02-22 22-19-48

brondsem avatar Feb 23 '18 03:02 brondsem

I have a small proof-of-concept that shows the directory structure more visually. What do people think of this?

screenshot 2018-02-22 22-25-05

It is still all markdown/html (not a screenshot) so it is maintainable, but the syntax for it is quite ugly currently so I would need to improve it. (Thus asking for feedback before making a pull request).

There are also pages that use directory trees to tell you to create a file or folder. I am not sure what would be most clear for those. Example:

screenshot 2018-02-22 22-24-18

brondsem avatar Feb 23 '18 03:02 brondsem

I think the visual directory structure looks great! Could you share the code that generates this?

jacebrowning avatar Feb 23 '18 14:02 jacebrowning

The code is at https://github.com/brondsem/djangogirls-tutorial/commit/e8fb212dee528ca80b9ec48c91fc6e4ad0376316 but as I said its pretty ugly. I would make it into a nunjucks macro I think, if folks are interested in this.

brondsem avatar Feb 23 '18 16:02 brondsem

@brondsem I can confirm most users don't recognize the output of tree and even then you can't replicate it because the virtualenv is usually in there. Your suggestion looks good and I think it'll remove confusion by students.

ekohl avatar Mar 06 '18 17:03 ekohl

Any update on this? This would remove a lot of common questions.

ekohl avatar Nov 17 '18 11:11 ekohl