Code Monkey home page Code Monkey logo

ofsite's Introduction

openFrameworks site

English | 中文 | 日本語 | 한국어

This repository stores the content and code that generates the openFrameworks website.

Contributing

To contribute fixes to the webpage or documentation you can usually just fork this repository and send contributions directly from github.

Most of the content is in the content folder in markdown folder.

The tutorials folder is structured with a first level of folders that represent the category and then a inside them markdown files with the extension .markdown and a folder for each of them with the same name as the text file that contains images or any other resource. The final html for each tutorial gets generated at the same level as it's resources so the links have to be relative and without any folder like:

![img](image.png)

The documentation folder contains the OF API reference and are also in markdown format. This docs are generated from the code but the description field in every class, function or var can be edited directly in the markdown files.

Setting up the site to build locally

This site is built using nikola. There's some scripts in the root folder to make it easier to install and use.

  1. First, if installing on Mac OS-X, make sure the Xcode command lines tools have been installed:
xcode-select --install

and then install the following packages (If you do not have brew installed you can grab it from brew.sh):

brew install python3
sudo easy_install pip
brew linkapps python3
  1. From the ofSite source directory, run ./install.sh which installs nikola and all the needed dependencies. (This has only been tested on linux and OS-X).

  2. Please make sure the symbol link ~/nikola/.Python to python3 path is correct before you run install.sh script.

  3. Finally add the following to your .basrc, .bash_profile or .zshrc file: export XML_CATALOG_FILES="/usr/local/etc/xml/catalog"

There are two scripts included in the ofSite root to help work with the docs:

./auto_build.sh : Runs nikola and builds the site every time any file is modified.

If, on osx, you receive this error: FileNotFoundError: [Errno 2] No such file or directory: 'asciidoctor', you need to install asciidoctor as explained here, and then run the script again.

./serve.sh : Starts a local web server that serves the site and opens it in the browser.

If you plan to do a big modifications like contribute a translation the easiest is to leave the 2 last scripts running and just edit the content files and the site will automatically get refreshed.

Documentation-style markdown

The documentation portion of the site is written in Markdown, a wiki-style syntax. See details on Daringfireball.

The easiest way to check the syntax is having a look at the many pages already on the site, but here are some useful tips:

To insert code snippets use three tildes followed by curly braces with ".cpp" inside, and ending with three tildes:

```cpp
for(int i = 0; i < 16; i++) {
	ofLog() << i;
}
```

Images are added using normal markdown format:

![Image Title](filename.png "alt text")

For a more complete description of how to contribute documentation, please see the Contributing to the Documentation tutorial.

ofsite's People

Contributors

apparentvj avatar arturoc avatar bilderbuchi avatar caitlinmorris avatar corpuscallosum avatar csugrue avatar danomatika avatar edap avatar frauzufall avatar hamoid avatar icq4ever avatar javl avatar jesusgollonet avatar jjongun avatar joshuajnoble avatar jshaw avatar jvcleave avatar kylemcdonald avatar leocolomb avatar microcosm avatar mikechambers avatar mikewesthad avatar nicoleyimessier avatar noisecapella avatar oftheo avatar ofzach avatar patriciogonzalezvivo avatar tado avatar thiagohersan avatar workergnome avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ofsite's Issues

formatting in *_functions.markdown files not correct

The formatting in *_functions.markdown files is not being handled in the same way as the regular class files. For ofLog_functions, the formatting is all off and endlines aren't being handled. Is there a separate parser running over these files?

code sections

Some are ~~~~{.cpp} others are $$code(lang=c++)

Which is the preferred?

mailing list is gone

we should keep the mailing list / signup as an option on the site -- it's missing now.

git links on documentation page

at the moment, the git links on every function description next to the up arrows seem a bit unnecessary
maybe just one link at the top of each page would be good ?

tutorials location?

I have a few small tutorials that I've written up & want to submit. Where should they go? I was imagining that it would be a top level item, like _documentation, gallery, etc, but I'm not too bothered regardless.

documentation: change some orders

some functions, like ofTranslate(...) with different params are not in order. makes sense that they are next to each other because only one is listed above.

favicons missing

there's an OF favicon on the forum, would be good to have one on the main site.

more links in documentation

would be good if the parameters or return types that reference other OF objects linked to them also...

for example, something like this:

void ofTranslate(const ofPoint &p)

could link to ofPoint.

Mistakes at http://www.openframeworks.cc/setup/linux-codeblocks/

The following text:

open a terminal from Applications > Accesories > Terminal

It'd be written Accessories not Accesories.

Then the path is wrong for cd /home/ofuser/Desktop/of_preRelease_v0.06_linux_cb_FAT/scripts/ubuntu, it'd be scripts/linux/ubuntu.

Then a newline is missing from sudo ./install_codeblocks.shsudo ./install_dependencies.sh

documentation: show inheritance more

for something like ofCamera, it would be nice to show how it has functions that are a part of ofNode. (and have them link to ofNode's documentation, ie don't repeat)

ofImage has type as int, public vars, & missing getBPP, etc

I noticed a few things when working with ofImage:

  • ofImage has a type variable for the image type but this is an int, as opposed to the ofImageType enum, so it's annoying to force convert ...
  • the width, height, & bpp variables are public, they should be protected with getters/setters
  • there isn't a getBytesPerPixel, you have to get the pixel reference then call getBytesPerPixel ...

Strange structure of the site

Hi!
The structure of the site seems a bit strange to me. What exactly is the purpose of the second row of menus, > forum > addons > wiki > github > mailing list?
Those kind of clash with the rest of the menu structure, and should be integrated into it: forum and mailing list should be in community, addons should be in download, wiki should be in documentation, github should be in development.
The tutorials main heading imo belongs in documentation
The second row should then act (if technically feasible) as selection-dependent sub-headers, where necessary, e.g. the documentation section should display reference, tutorials, wiki, the development should display github, CI, and probably a link to the github wiki pages.

what do you guys think?

Content missing where Markdown exists

Running blogofile locally I am not seeing added content

For instance, I edited this file:

https://github.com/jvcleave/ofSite/blob/b360dfe720772b06316d85136a36c388abb74cba/_documentation/utils/ofSystemUtils_functions.markdown

but locally the last function is missing looks like this (rebuilt blogofile, re-served)

http://i.imgur.com/FaoFr.png

ofEventUtils (and maybe others) seem to have the same issue:
https://github.com/openframeworks/ofSite/blob/master/_documentation/events/ofEventUtils_functions.markdown
http://www.openframeworks.cc/documentation/events/ofEventUtils.html

Update look and homepage

I'm curious about why there's almost no signs of the new release in ofSite homepage.
Besides that when someone new gets there the first video is a 2008 video. Shouldn't we put there a newer video. There are so much stuff that's really cool that could go there.

regarding site design/look, I think the header uses to much screen space and leaves way to much unused space. For instance in the documentation page almost all you see is the header with lots of unused screen space.

So, can I propose a new/modified look?

Any sugestions for the video in the homepage? I think that a mashup of a lot of videos of stuff done with OF would be really cool, I'll see if I can do so with my crew (we're quite busy right now but it guess that we can make some time to do it).
In this case a suggestion of videos to include would be really nice.

Last thing, do I need to install blogofile in my computer to be able to see the modifications I do to the site?

Best regards!

ofx Online Documentation Download broken

The download link on the Documentation on the openframeworks.cc site just contains an empty (just a few .css-files) archive.
I forked the repository but the the link ROOT/epub/ofReference.zip doesn't exist. Is the archive generated automatically? Can I fix this somehow and issue a pull request?

Documentation Missing, Downloadable Zip Missing Files

There are some pages missing in the documentation section.

I'm getting 404's for types:
http://www.openframeworks.cc/documentation/types/ofColor_.html
http://www.openframeworks.cc/documentation/types/ofStyle.html
http://www.openframeworks.cc/documentation/types/ofRectangle.html

I ran into a couple others that were missing as well. Would you guys be able to check that all the pages are in-tact?

Also checkout the downloadable html documentation - There's only 4 files in it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.