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

Refactor data directory #133

Closed
mattstratton opened this issue Apr 14, 2016 · 6 comments
Closed

Refactor data directory #133

mattstratton opened this issue Apr 14, 2016 · 6 comments

Comments

@mattstratton
Copy link
Member

The model for the data directory should change to look like this:

/data
├── events
│   └── 2016
│       └── ponyville
│           ├── meta.yml
│           └── speakers
│               ├── apple-jack.yml
│               ├── rainbow-dash.yml
│               └── twilight-sparkle.yml
└── sponsors
    └── 2016
        ├── bluthcompany.yml
        └── sitwell.yml

The meta.yml file will contain what is in the current yyyy-city.yml file. Speaker bios go in the "speakers" folder. This way you can have different bios for each year, as they will likely change.

Sponsors directory is also changed YOY as URL's may differ. We will likely also make a change to the /static directory as such:

/static

├── events
│   └── 2016
│       └── ponyville
│           ├── logo.png
│           └── prospectus.pdf
└── sponsors
    └── 2016
        ├── bluthcompany.png
        └── sitwell.png

So each event gets it's own static folder in the appropriate year, as well as each sponsor. The url for the 2016 Ponyville event would be devopsdays.org/events/2016/ponyville/logo.png

Discuss.

@mattstratton
Copy link
Member Author

The range listed below is going to be a key element for when we refactor the data directory. Notice how you pass the variables, etc. So the new code would probably be something like this:

.Site.Data.events $e.year "speakers" (printf "%s" (lower $e.city))

and to get at the meta.yml for the city it will be

.Site.Data.events $e.year (printf "%s" (lower $e.city))

mattstratton added a commit that referenced this issue Apr 14, 2016
This is refactored to be MUCH better. It is on the right track. This will change slightly when we refactor in issue #133.
@bridgetkromhout
Copy link
Collaborator

I'd like for us to fix all the 2016 events as they come in, with redirects to the deprecated /proposals/ as needed. Reminded by #143.

@mattstratton
Copy link
Member Author

@bridgetkromhout - when you say fix them, you mean move them to the new structure? I'm not sure it will be backwards compatible, so when I change to support this structure I'll probably just switch the existing events.

@bridgetkromhout
Copy link
Collaborator

Excellent; we're thinking along the same lines. I meant "change old programs that people create the old way to all be the new way". Switching the existing events is exactly perfect. (We'll just need a few redirects since people might be linking to their own talk page.)

@mattstratton mattstratton added this to the Future Enhancements milestone May 2, 2016
@mattstratton
Copy link
Member Author

For now, we will put this into "Future Enhancements" as it's a bigger thing to bite off than I thought.

benjohnson77 pushed a commit to benjohnson77/devopsdays-web that referenced this issue May 22, 2016
This is refactored to be MUCH better. It is on the right track. This will change slightly when we refactor in issue devopsdays#133.


Former-commit-id: cd8be63
yvovandoorn pushed a commit that referenced this issue May 22, 2016
This is refactored to be MUCH better. It is on the right track. This will change slightly when we refactor in issue #133.
yvovandoorn pushed a commit that referenced this issue May 22, 2016
This is refactored to be MUCH better. It is on the right track. This will change slightly when we refactor in issue #133.


Former-commit-id: cd8be63
yvovandoorn pushed a commit that referenced this issue May 22, 2016
This is refactored to be MUCH better. It is on the right track. This will change slightly when we refactor in issue #133.
yvovandoorn pushed a commit that referenced this issue May 29, 2016
This is refactored to be MUCH better. It is on the right track. This will change slightly when we refactor in issue #133.


Former-commit-id: cd8be63
yvovandoorn pushed a commit that referenced this issue May 29, 2016
This is refactored to be MUCH better. It is on the right track. This will change slightly when we refactor in issue #133.
@mattstratton mattstratton modified the milestones: 3.0, Future Enhancements Aug 20, 2016
@mattstratton
Copy link
Member Author

Closing this in favor of devopsdays/devopsdays-theme#229

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

No branches or pull requests

2 participants