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

Reorganization and redesign #43

Merged
merged 39 commits into from
Nov 26, 2014
Merged

Reorganization and redesign #43

merged 39 commits into from
Nov 26, 2014

Conversation

mnapoli
Copy link
Contributor

@mnapoli mnapoli commented Nov 25, 2014

Fixes #35, #40, #41, #42

Relates to #22, #44

TODO:

  • Write introduction guides for categories and subcategories
  • Maybe reorganize some guides in "Develop" to make the left menu clearer

Things to watch out:

  • I have renamed some guides, splitted some into smaller ones… I have set up redirects but for links that link to a specific section of the guide (e.g. tests#travis-ci) they might be redirected with loosing the #travis-ci… We have to decide if that's acceptable.

I've reorganized the sections/menu as discussed in #35:

  • Home
  • Integrate
  • Develop (now contains guides for plugins + how piwik works/contributing)
  • API reference
  • Changelog
  • Support

I've hidden "Design" for now (which contains guides for theming) per @mattab's request: the documentation is not good enough.

I've simplified the UI/templates/codebase, we now have:

  • the home page
  • guides

There is no "category home page" anymore. The idea is to do something like Wordpress' developer documentation: the category home page is actually a guide that introduces the category. The left menu should do the rest (see just below).

Navigation through the category is now done with the left menu which is always visible and which is focused mainly on listing all guides of the category (previously it listed by default the sections of the current guide: that is now below).

Navigating through a long guide is less practical with this design, but this is OK: we want to write smaller guides (like on Wordpress). Smaller guides are easier to read, easier to write and maintain. And by listing smaller guides hierarchically (like Wordpress again) makes the whole thing much easier for visitors.

I've splitted the MVC guide for example into (see the screenshot):

  • MVC guide introduction
  • How Piwik handles HTTP requests
  • Models (APIs)
  • Views
  • Controllers

This is much easier to navigate and read for visitors (at least we think so), so we should try to do the same with other guides.

I've also improved (hopefully) the website design. Screenshots:

home

guide

@mnapoli mnapoli self-assigned this Nov 25, 2014
@mnapoli mnapoli changed the title [WIP] Reorganization and redesign Reorganization and redesign Nov 26, 2014
@mnapoli
Copy link
Contributor Author

mnapoli commented Nov 26, 2014

I think this is ready to be merged, maybe checkout the branch locally and give it a spin?

Also:

Things to watch out:

  • I have renamed some guides, splitted some into smaller ones… I have set up redirects but for links that link to a specific section of the guide (e.g. tests#travis-ci) they might be redirected with loosing the #travis-ci… We have to decide if that's acceptable.

FYI I have rewritten links in the developer documentation.

mattab pushed a commit that referenced this pull request Nov 26, 2014
Reorganization and redesign
@mattab mattab merged commit f7359a5 into master Nov 26, 2014
@mattab
Copy link
Member

mattab commented Nov 26, 2014

I'm merging and we'll see what happens live! Good to see such progress

@mnapoli mnapoli deleted the design branch November 26, 2014 20:26
@mnapoli
Copy link
Contributor Author

mnapoli commented Nov 26, 2014

I forgot one thing: now to make things simpler (hopefully) guides declare in which category they are. To do this, I've used Front YAML, which is what is used in blog engines/static websites based on Markdown (exactly like here so it makes sense).

Front YAML is YAML at the top of the document, placed in ---:

---
category: Develop
---
# The Core Team Workflow

blah blah…

We can also define previous/next guides like this, and also sub-guides:

---
category: Develop
subGuides:
  - http-request-handling
  - mvc-models
  - mvc-views
  - mvc-controllers
---
# MVC (Model-View-Controller)

## About this guide

**Read this guide if**

@mattab
Copy link
Member

mattab commented Nov 27, 2014

@mnapoli This front yaml sounds good (never heard of it before)! could you maybe add a note in the doc https://github.com/piwik/developer-documentation/#adding-a-new-guide ?

@mnapoli
Copy link
Contributor Author

mnapoli commented Nov 27, 2014

@mattab will do

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

Successfully merging this pull request may close these issues.

Add Changelog to menu again
2 participants