AniDB:CSS DEV: Difference between revisions

mNo edit summary
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{TOCright}}
{{TOCright}}


This pages content is centred around CSS development via AniDB's [[Wikipedia:Subversion (software)|SVN]]. The goals of the SVN are:
This pages content is centred around CSS development via AniDB's GIT. The goals of the GIT are:
# Keeping track of all CSS styles.
# Keeping track of all CSS styles.
# Version control for developers.
# Version control for developers.
Line 7: Line 7:
# Automatic update of the drop down menu in the [[profile]].
# Automatic update of the drop down menu in the [[profile]].


{{eyecatch|Note|You should build your style on already existing code. Check the folder '''css/common'''. Examples can be found in '''css/sub'''.}}
{{eyecatch|Note|You should build your style on already existing code. Check the folder '''common'''. Examples can be found in '''sub'''.}}


==Getting the Source of a Style==
==Getting the Source of a Style==
If you only want to get the latest version of all files belonging to a particular style, you don't need to install an SVN client. A simpler approach would be to download the files from the SVN repository with your web browser.
If you only want to get the latest version of all files belonging to a particular style, you don't need to install an GIT client. A simpler approach would be to download the files from the GIT repository with your web browser.


To do that go to [https://git.anidb.net/anidb/svn/tree/master gitlab] and click the download link.
To do that go to [https://git.anidb.net/anidb/css/tree/master gitlab] and click the download link.


If you want to contribute your own styles, you will need to install a git client.
If you want to contribute your own styles, you will need to install a git client.


==Connecting to GIT==
==Connecting to GIT==
[https://git.anidb.net/anidb/svn/tree/master Web]
[https://git.anidb.net https://git.anidb.net] - [https://git.anidb.net/anidb/css/tree/master Direct access to public repo]


For write access contact an [[User:Mods|AniDB Mod]].
For write access just sign up to the git. If you have further questions feel free to ask in {{irclink|anidb-dev}} or {{irclink|anidb}}.
 
If you have further questions feel free to ask in {{irclink|anidb-dev}} or {{irclink|anidb}}.


===Committing===
===Committing===
After you have edited, added or even deleted some things you still have to commit your changes. This will write the things to the SVN.  
After you have edited, added or even deleted some things you still have to commit your changes. This will write the things to the GIT.  


You can commit on a file or dirlevel. Meaning you can commit a big change with multiple files or folders involved or just specific files. '''To not spam us all into oblivion with SVN mails it's recommended to bundle some commits.'''
You can commit on a file or dirlevel. Meaning you can commit a big change with multiple files or folders involved or just specific files. '''To not spam us all into oblivion with GIT mails it's recommended to bundle some commits.'''


Take also note that you should before editing anything '''always''' update your local files with the ones in the SVN.
Take also note that you should before editing anything '''always''' update your local files with the ones in the GIT.


==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>)
# Add a new dir for your project in the CSS folder (<tt>/{your_style}</tt>)
# Name the dir whatever you want, but '''NO SPACES!'''.
# 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>)
# If you are using images different from the AniDB ones add a <tt>/images/</tt> dir below your project (i.e. <tt>/{your_style}/images</tt>)
#* You may use sub-folders below that one if you want.
#* You may use sub-folders below that one if you want.
# Add a screenshot and a thumbnail of your style in the images folder with the following specifications:
# Add a screenshot and a thumbnail of your style in the images folder with the following specifications:
Line 51: Line 49:


In the end you should end up with a structure like this:
In the end you should end up with a structure like this:
   /trunk/css/<your project>
   /<your project>
   /trunk/css/<your project>/description
   /<your project>/description
   /trunk/css/<your project>/images
   /<your project>/images
   /trunk/css/<your project>/images/screenshot.png
   /<your project>/images/screenshot.png
   /trunk/css/<your project>/images/thumbnail.png
   /<your project>/images/thumbnail.png


==Merging & Hosting==
==Merging & Hosting==
MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.