training-kit icon indicating copy to clipboard operation
training-kit copied to clipboard

Beautify downloads/index.html

Open crichID opened this issue 9 years ago β€’ 15 comments

Overview

When you build this repository locally (or package it for viewing behind a firewall) the page at on-demand/downloads/index.html looks like this:

screen shot 2017-01-23 at 10 22 47 am

To improve the offline experience, we should add some formatting to this page to make it look more like the cheat sheets section at https://services.github.com/resources/#cheat-sheets

How to Contribute

  • [ ] Comment on this issue if you'd like to work/collaborate on it!
  • [ ] Fork the repository.
  • [ ] Use the GitHub Flow to make changes to your fork. This is a refresher course if you're unsure about how to make a change on GitHub.
  • [ ] Push your changes to your repository.
  • [ ] Submit a Pull Request
    • Base Dropdown: github/training-kit
    • Compare Dropdown: Your fork

Testing Locally

If you'd like to make and test changes locally (and see how they would look if merged), do the following:

  • In your command line:
    • Install Git
    • Install Ruby
    • [ ] Run script/setup
    • [ ] Run script/server.
      • When successful, the script will initiate a local server at http://127.0.0.1:4000/on-demand.

Questions?

  • Leave a comment on this issue! Make sure to use @ mentions if you want a specific person's attention!

crichID avatar Jan 23 '17 15:01 crichID

.

Geetus avatar Feb 09 '17 08:02 Geetus

@crichID Hey! I can work on this as my first issue!

abdulhannanali avatar Feb 22 '17 00:02 abdulhannanali

@abdulhannanali That's fantastic, thank you! Feel free to fork and open a pull request, and let us know if you need or want any help along the way. πŸ˜„

brianamarie avatar Feb 22 '17 14:02 brianamarie

Cool @brianamarie I'll start right away

abdulhannanali avatar Feb 27 '17 15:02 abdulhannanali

@brianamarie Some questions before I start.

  • Should this downloads page use the layout similar to the other pages using Minimal Mistakes?
  • Checking out the link @crichID mentioned, on what basis are the given icons assigned.
  • What's better, An index file maintaining the file paths of all the resources within downloads for every locale or reading the directory to figure out the logic, the indexing based on directory structure will be flexible but can cause problems, if anything with the path name or the meta data gets wrong, while maintaining a separate index with this data, will be better, but each file would have to be added separately in the index for a given topic?

If there's anything you think I am allowed to figure out myself do let me know. Don't want to bug you with unnecessary questions. Thanks a lot :)

abdulhannanali avatar Feb 28 '17 10:02 abdulhannanali

@abdulhannanali These are all great questions! I'll do my best to answer, but any other @github/services-training members, please feel free to lend your expertise. 😊

Should this downloads page use the layout similar to the other pages using Minimal Mistakes?

Minimal Mistakes would be πŸ’― πŸ‘ great.

Checking out the link @crichID mentioned, on what basis are the given icons assigned.

Hm...these decisions were made before my time on the training team, so I actually don't know. @crichID Do you have any ideas on this?

What's better, An index file maintaining the file paths of all the resources within downloads for every locale or reading the directory to figure out the logic, the indexing based on directory structure will be flexible but can cause problems, if anything with the path name or the meta data gets wrong, while maintaining a separate index with this data, will be better, but each file would have to be added separately in the index for a given topic?

I have no strong opinion on this. Maybe @crichID, @stoe, or @hectorsector will have some thoughts?

brianamarie avatar Feb 28 '17 14:02 brianamarie

@brianamarie Thanks a lot for your answer. So I'll use the already present layout for minimal mistakes in the _layouts. For the purpose of having an Index file. I am open for input on the icons and the file structure. I'll be checking the other directories for similar patterns too, if I can find any. :smile:

abdulhannanali avatar Feb 28 '17 14:02 abdulhannanali

What's better, An index file maintaining the file paths of all the resources within downloads for every locale or reading the directory to figure out the logic, the indexing based on directory structure will be flexible but can cause problems, if anything with the path name or the meta data gets wrong, while maintaining a separate index with this data, will be better, but each file would have to be added separately in the index for a given topic?

@abdulhannanali this depends on your comfort level. I will tell you that in the link @crichID shared, we don't get that fancy, and we just manually maintain the list πŸ˜‰ If you're into Jekyll and can work through the logic, I'm game! If not (but you're willing to try it out later), I suggest 🚒ing a first iteration with manually added links, and then (if you'd like) we can collaborate on a second iteration using logic.

hectorsector avatar Feb 28 '17 14:02 hectorsector

on what basis are the given icons assigned

@abdulhannanali that is a great question and it was a design decision more than a technical one. We can grab copies of those icons if you would like to reuse them here.

crichID avatar Feb 28 '17 14:02 crichID

πŸ‘‹ @abdulhannanali !

Just wanted to check in. We're currently running through all of our stale issues and cleaning them up. Are you still interested/do you still have the bandwidth in helping us out with this one? πŸ˜„ We'd be happy to support you if you need anything!

hollenberry avatar Aug 29 '17 07:08 hollenberry

Are you still interested/do you still have the bandwidth in helping us out with this one?

Actually @hollenberry I was just looking at this and I think the process is much simpler now.

The goal was to make this page better for offline viewing since resources/downloads lived on services.github.com instead of here on training-kit. Now that resources have been moved back to training-kit, I "think" we can just redirect anything from downloads/ to the resources/cheatsheets.md. @JasonEtco do you agree?

crichID avatar Aug 29 '17 11:08 crichID

we can just redirect anything from downloads/ to the resources/cheatsheets.md

That would certainly be simpler; as far as I know, the content is the same so I have no problem doing that.

JasonEtco avatar Aug 29 '17 16:08 JasonEtco

I've done downloads/index.html for better user experience (: You can see my PR #585

learneradarsh avatar Sep 03 '17 20:09 learneradarsh

hey, what's the status of this issue @crichID ?? I would like to work on this.

harry-hov avatar Jan 25 '19 15:01 harry-hov

Hello @harry-hov πŸ‘‹ I think that this issue should probably be closed. It's my understanding that the downloads page now redirects to cheatsheets, so this is no longer an issue. Sorry for the confusion, and thank you for your willingness to help!

brianamarie avatar Jan 28 '19 07:01 brianamarie