For the task "WEB: Make wiki CSS stylesheet theme match main website", can we change the HTML file or only the CSS?
@Lucas Prieels you can change the HTML, but for that it would be better if you modified the source template files -- which I think is all checked into our github repo.
https://github.com/BRL-CAD/web
you may want to compare with what is in https://github.com/BRL-CAD/brl-cad-wiki
@ sean I don't see what the second link is, I didn't find any HTML file in it.
Also, I'd like to change theHTML header because the association with the colors pink and black from http://brlcad.org and the image which is in the wiki header now is really ugly but I don't know how to do it: I can only change the headers of the files one by one? I suppose (and mostly hope :)) that there's a faster way, right?
@Sean
the second link is an installation of mediawiki with the theme adjusted to more closely match the main website
however it was done a couple years ago and is out of sync
and never fully completed iirc
sorry, not an installation of mediawiki -- it's a proper mediawiki THEME
it just drops into mediawiki and can be selected -- to test it, you'd need to install mediawiki somewhere
but it's "the proper way"
@Sean Ok I'll try it. And what about my other question?
Not sure if this can apply to your case, but you can try Control-Shift-F
to search for all instances of a certain string in all files of a directory (for Sublime Text at least).
Not sure if this can apply to your case, but you can try
Control-Shift-F
to search for all instances of a certain string in all files of a directory (for Sublime Text at least).
I didn't know we could search in an entire directory with Subkime. Thanks a lot, that really helps!
Sublime ftw
grep works too :P
and will recursively walk an entire tree
nearly every IDE has such an option too including emacs, vim, sublime, visual code, etc
I don't know if you're aware, but I've seen a few broken links on the wiki:
http://brlcad.org/wiki/Google_Summer_of_Code/Project_Ideas#Mentors
http://brlcad.org/wiki/Help:Contents
http://brlcad.org/wiki/MGED_CMD_preview
(these are pages where we can see red links)
(deleted)
Also, I subscribed for an account in BRL-CAD and the confirmation mail arrived in my spams (gmail). That's a bit disturbing but I don't know if you can do anything for that
Doesn't for me..
Hi @LordOfBikes , did u get a chance to look at the site i submitted for the LibreCAD onepager?
No rush, i was just wondering u liked it :wink:
I may need a little help :). I'd like to change all the "headers" div in all the file of the website. I used for that search and replace but the problem is that in a lot of the files, there are comments between the lines so I can't run replace with
<div class="header" id="header"> <table class="menutable"> <tr> <td valign="top" class="menu"> <div ><a href="../../d/download/" class="menu">download</a></div> </td> <td valign="top" class="menu"> <div ><a href="https://www.facebook.com/BRL-CAD-387112738872/" class="menu">news</a></div> </td> <td valign="top" class="menu"> <div ><a href="../../d/about" class="menu">about</a></div> </td> <td valign="top" class="logomenu"> <img href="../../" src="../../img/logo_color.png" class="logo"> </td> <td valign="top" class="menu"> <div ><a href="../../wiki/" class="menu">docs</a></div> </td> <td valign="top" class="menu"> <div onclick="menu_support()onclick="menu_docs()""><a href="https://sourceforge.net/projects/brlcad/support" class="menu">support</a></div> </td> <td valign="top" class="menu"> <div ><a href="../../gallery/" class="menu">gallery</a></div> </td> </tr> </table> </div>
I searched on the internet but didn't find anything. Anyone know how to exclude comments from the search? Thanks
sry gimme a sec to read
The code isn't important, just the last question :) but thanks
Wdym comments between ?
Like if I searched for the code above, it would not find that for example:
<div class="header" id="header"> <table class="menutable"> <tr> <td valign="top" class="menu"> <div ><a href="../../d/download/" class="menu">download</a></div> </td> <td valign="top" class="menu"> <div ><a href="https://www.facebook.com/BRL-CAD-387112738872/" class="menu">news</a></div> </td> <td valign="top" class="menu"> <div ><a href="../../d/about" class="menu">about</a></div> </td> <td valign="top" class="logomenu"> <img href="../../" src="../../img/logo_color.png" class="logo"> </td> <td valign="top" class="menu"> <div ><a href="../../wiki/" class="menu">docs</a></div> </td> <td valign="top" class="menu"> <!-- Comment here--> <div onclick="menu_support()onclick="menu_docs()""><a href="https://sourceforge.net/projects/brlcad/support" class="menu">support</a></div> </td> <td valign="top" class="menu"> <div ><a href="../../gallery/" class="menu">gallery</a></div> </td> </tr> </table> </div>
oh ok, dont search for the entire block of code, only search for the class, then skim through the results to find the corresponding code
The problem is that there are more than 5,000 files :)
Wtf, is it a website?
You could write a program that does that, right? It shouldn't take more than a couple of minutes with fast i/o
Python would probably be a quick way because it provides libraries for that
Are you trying to replace the headers for the website with the one from the github repo?
How is there 5000 files?
That does seem odd
Wtf, is it a website?
Yes, the BRL-CAD's one
Are you trying to replace the headers for the website with the one from the github repo?
Yeah, and I don't know a lot about sublime's plugins but I'll try thanks
No way, did u write the code from scratch or used a generator?
Im not being mean : )
That's the one which is currently the wiki. I've just downloaded it
no worry :)
Impossible, do u mean 5000 files or 5000 lines of code?
oh well if you're using sublime you can use this instead
http://docs.sublimetext.info/en/latest/search_and_replace/search_and_replace_files.html
files
there are 5000 files but not all of them are html, there are pictures,... But I think there are still more than 1000 coding files
I would download the files manually, manually meaning copy and paste the code
Make sure you only open just the .html files
I've seen that but excluding comments isn't explained
Wait did u download the entire wiki or just one html page?
Yeah, but there are still hundreds of files including one by user, the wiki talks,...
the entire wiki
Oh ok, that makes since, i thought u meants one of the wiki pages lol
You could get everything that starts with the first line until the last
this will delete the comments though
Otherwise write a program to parse the files and skip at each comment line
Yeah, I don't know if the comments are important. I don't know how to do that but I'll search thanks
Also, you might want to read about regex for sublime
That could be somewhere to start
I wonder how web developers handle it? I personally don't do web stuff so you would think they would come up with a better way
Im sure there is, its just hard to figure it out without doing it first hand lol
I still think making a parser is the easiest way to do it
Most modern languages come with libraries that would make this really easy
(deleted)
How is there 5000 files?
if I had to guess, there's an export of BRL-CAD source code API documentation in there, which is quite extensive
the wiki is "only" a few hundred pages
at least, I think .. I suppose there could be thousands of files by now if you count image uploads too
@Lucas Prieels I think this is the best wiki style fixup I've seen so far
The one I submitted?
no, the one you didn't submit .... ;)
https://screenshots.firefox.com/g6ppMqju7xpTswqB/brlcad.org
That's your new stylesheet?
What do you guys think about that style?
Awesome! Colors like in the main page.
It looks amazing
I wonder what does the whole page look like?
I haven't really finished the whole website yet haha
I was thinking of adding a dynamic header and an animated table of contents
@Mahdi Did you finish your website in time?
There's still another 3 days, right? Provided the current task is the website one.
yup , just the last day will be 17th jan and no extensions probably
Yes, it's a definite no extensions. Set by Google itself/themselves.
Yes but you have to claim a follow-on task to finish it properly, so you have to do it now :)
Everyone, who did the CSS task eventually? @William Cook @Mitesh @Naseef @Mahdi
I didn't do any CSS tasks for BRL-CAD.
i did only one css task
@Sean for the second CSS task, all I have to do is change the css file or do I have to do some changes using WikiMedia?
there's not enough time now, but the idea was to get it working with mediawiki, nothing really to do with the css file
Last updated: Jan 10 2025 at 00:48 UTC