546
edits
Epoximator (talk | contribs) No edit summary |
Epoximator (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{TOCright}} | {{TOCright}} | ||
This pages content is centered around CSS | This pages content is centered around CSS development via Anidb's [http://en.wikipedia.org/wiki/Subversion_(software) SVN]. The goals of the SVN are: | ||
# | # Keeping track of all CSS styles. | ||
# | # Version control for developers. | ||
# | # Automatical upload procedure to one of anidbs server. | ||
# | # Automatical update of the drop down menu in the [[profile]]. | ||
= | =Open issues= | ||
# | # Screenshot filename and resolution | ||
# | # Format and name of the descriptionfile (xml?) | ||
# | # Stuff | ||
==Connecting to SVN== | ==Connecting to SVN== | ||
First thing you need a client. You can of course use any svn client you want, but we recomment [http://tortoisesvn.tigris.org/ Tortoise SVN] for windows user as it nicely integrates into Explorer and makes it, as such, very easy to use. After that you specify a dir on your hdd where you want to put the files and checkout the current CVS version. | First thing you need is a client. You can of course use any svn client you want, but we recomment [http://tortoisesvn.tigris.org/ Tortoise SVN] for windows user as it nicely integrates into Explorer and makes it, as such, very easy to use. After that you specify a dir on your hdd where you want to put the files and checkout the current CVS version. | ||
If you don't like integration you could use [http://www.syntevo.com/smartsvn/ SmartSVN]. | |||
For Mac users we recommend [http://rapidsvn.tigris.org/ RapidSVN]. RapidSVN does not integrate with the Mac Finder as much as Tortoise does with Explorer. Instead it is a standalone app that you use to browse the files on the SVN server (Repository) as well as your local files (Working Copy). | For Mac users we recommend [http://rapidsvn.tigris.org/ RapidSVN]. RapidSVN does not integrate with the Mac Finder as much as Tortoise does with Explorer. Instead it is a standalone app that you use to browse the files on the SVN server (Repository) as well as your local files (Working Copy). | ||
By SVN Client: svn://dev.anidb.info/svn/trunk<br/> | By SVN Client: svn://dev.anidb.info/svn/trunk<br/> | ||
For write access contact an AniDB Mod. | For write access contact an [[User:Mods|AniDB Mod]]. | ||
If you have further questions feel free to ask in #anidb-dev or #anidb @irc.zirc.org or pm a mod. | If you have further questions feel free to ask in #anidb-dev or #anidb @irc.zirc.org or pm a mod. | ||
Line 43: | Line 45: | ||
==Adding a new project== | ==Adding a new project== | ||
There are a few things that needs to get done when adding a new project | There are a few things that needs to get done when adding a new project: | ||
# Add a new dir for your project in the css folder (<tt>/trunk/css/{your_style}</tt>) | |||
# Name the dir whatever you want, but '''NO SPACES!'''. | |||
# If you are using images different from the anidb ones add a <tt>/images/</tt> dir below your project (i.e. <tt>/trunk/css/{your_style}/images</tt>) | |||
#* You may use subfolders below that one if you want. | |||
# Add a screenshot of your style in the images folder with the following specifications: | |||
#* Filename: screenshot.{ext} | |||
#* Resolution: ? | |||
# Add a description file in the root of your project, add the following lines and fill them accordingly as you see fit: | |||
#* Title: | |||
#* Creator: | |||
#* Last update: | |||
#* Status: | |||
#* Further notes: | |||
# (optional) For autoprocessing edit the '''styleslist''' file and add a relative path for the main css file (the one with all your <tt>@import</tt> lines, i.e. <tt>./sub/silver/main.css</tt>) | |||
#* You can disable processing by adding a # in front of the line. | |||
In the end you should end up with a structure like this: | |||
/trunk/css/<your project> | |||
/trunk/css/<your project>/description | |||
/trunk/css/<your project>/images | |||
/trunk/css/<your project>/images/screenshot.png | |||
==Merging&Hosting== | ==Merging & Hosting== | ||
Every css that is used this way gets merged into 1 file (to reduce http overhead), uploaded to 1 of anidb's server and added to the dropdown menu in the anidb [[profile]]. To realize this a python script is used, doing the following: | Every css that is used this way gets merged into 1 file (to reduce http overhead), uploaded to 1 of anidb's server and added to the dropdown menu in the anidb [[profile]]. To realize this a python script is used, doing the following: | ||
edits