Re: Preprocessing CSS

2016-05-25 Thread Andrei Alexandrescu via Digitalmars-d

On 05/25/2016 09:36 AM, Adam D. Ruppe wrote:

On Wednesday, 25 May 2016 at 12:53:10 UTC, Andrei Alexandrescu wrote:

Did you consider simply fixing some of that crap?


I did! The result is at dpldocs.info

A few minor changes also went through Phobos too:

https://github.com/dlang/dlang.org/pull/1177
https://github.com/dlang/dlang.org/pull/1184


This is great, thanks much.


but the ddoc model just isn't very good to begin with.


Yah, I wouldn't disagree things can be vastly improved. My point there 
is to make sure we distinguish what's trivially fixable (e.g. redundant 
macro definitions) from larger issues. Again, if you find identical 
macros across dd/ddoc files, or redundant macros that do the same thing 
in just slightly different ways, please fix or file. Thanks!



Andrei



Re: Preprocessing CSS

2016-05-25 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 25 May 2016 at 12:53:10 UTC, Andrei Alexandrescu 
wrote:

Did you consider simply fixing some of that crap?


I did! The result is at dpldocs.info

A few minor changes also went through Phobos too:

https://github.com/dlang/dlang.org/pull/1177
https://github.com/dlang/dlang.org/pull/1184

but the ddoc model just isn't very good to begin with.


Re: Preprocessing CSS

2016-05-25 Thread Andrei Alexandrescu via Digitalmars-d

On 5/25/16 8:22 AM, Adam D. Ruppe wrote:

On Wednesday, 25 May 2016 at 12:14:35 UTC, Steven Schveighoffer wrote:

So much this. And where are they defined?


All over the place.

Seriously, many of the Phobos modules define their own custom MYREF or
SUBREF macros, in addition to the bazillion existing XREF and XREF2 and
XREF3 and so on and so forth in the *.ddoc files.


Yah, consolidating those would be nice. I ran a large consolidation a 
couple years ago but didn't get to everything.



And yes, it really is *.ddoc - dlang.org.ddoc has some, then they are
redefined in latex.ddoc and std-ddox.ddoc and there's variants of them
in std.ddoc.


That's by design. The whole idea here is to use a given macro and have 
latex.ddoc define it a different way than html.ddoc. Did you find macros 
with identical definitions across ddoc files? (Those would be bugs.)



This is one of the reasons I ditched all this crap and started writing
my own docs!


Did you consider simply fixing some of that crap?


Andrei



Re: Preprocessing CSS

2016-05-25 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 25 May 2016 at 12:14:35 UTC, Steven Schveighoffer 
wrote:

So much this. And where are they defined?


All over the place.

Seriously, many of the Phobos modules define their own custom 
MYREF or SUBREF macros, in addition to the bazillion existing 
XREF and XREF2 and XREF3 and so on and so forth in the *.ddoc 
files.


And yes, it really is *.ddoc - dlang.org.ddoc has some, then they 
are redefined in latex.ddoc and std-ddox.ddoc and there's 
variants of them in std.ddoc.


This is one of the reasons I ditched all this crap and started 
writing my own docs!


Re: Preprocessing CSS

2016-05-25 Thread Adam D. Ruppe via Digitalmars-d

On Wednesday, 25 May 2016 at 07:35:22 UTC, Johannes Pfau wrote:
One nice feature in SASS is color manipulation: You can easily 
lighten/darken colors and use constants for colors to easily 
generate different color schemes.


My cssexpand program does this too... and I actually find it 
isn't as useful in practice than you'd think anyway, since 
designers tend to just pick out their color palettes and don't 
like it when your code uses a whole bunch of variations on their 
choices.


Their palettes tend to be like ten colors (including shades of 
grey) and they don't like you going outside that in my 
experience. At that point, you might as well just write them (you 
can organize a css file to put them all basically in one place) 
or use a simple variable replacement system instead of all the 
color functions.


Re: Preprocessing CSS

2016-05-25 Thread Steven Schveighoffer via Digitalmars-d

On 5/25/16 2:28 AM, Jacob Carlborg wrote:

On 2016-05-25 05:47, Vladimir Panteleev wrote:



and is pretty self-explanatory.


Not really. How do I know which macro to use to create a link to a D
symbol? There's a bunch to choose from.


So much this. And where are they defined?

-Steve


Re: Preprocessing CSS

2016-05-25 Thread Jacob Carlborg via Digitalmars-d

On 2016-05-25 09:35, Johannes Pfau wrote:

Am Wed, 25 May 2016 08:28:01 +0200
schrieb Jacob Carlborg :


On 2016-05-25 05:47, Vladimir Panteleev wrote:

That said I don't see a lot of demand for preprocessing our CSS
files at the moment.

And, to add a data point, I have never used (or needed) neither
SASS or LESS, despite creating a lot of web apps and even working
at a web design company for a bit. I don't feel like I'm missing
out.


What you don't know you don't miss ;)



One nice feature in SASS is color manipulation: You can easily
lighten/darken colors and use constants for colors to easily generate
different color schemes.

Since GTK has switched to CSS, quite some themes use SASS to
easily provide different theme variants:
http://worldofgnome.org/adwaita-gtk-theme-is-now-ported-to-sass/
https://github.com/horst3180/arc-theme
...

OTOH I don't know if you really need these features in web applications.


One of my favorite feature is nesting. The following Sass:

nav {
  ul {
margin: 0;
  }
}

Would be translated to the following CSS:

nav ul {
  margin: 0;
}

--
/Jacob Carlborg


Re: Preprocessing CSS

2016-05-25 Thread Johannes Pfau via Digitalmars-d
Am Wed, 25 May 2016 08:28:01 +0200
schrieb Jacob Carlborg :

> On 2016-05-25 05:47, Vladimir Panteleev wrote:
> > That said I don't see a lot of demand for preprocessing our CSS
> > files at the moment.
> >
> > And, to add a data point, I have never used (or needed) neither
> > SASS or LESS, despite creating a lot of web apps and even working
> > at a web design company for a bit. I don't feel like I'm missing
> > out.  
> 
> What you don't know you don't miss ;)
> 

One nice feature in SASS is color manipulation: You can easily
lighten/darken colors and use constants for colors to easily generate
different color schemes.

Since GTK has switched to CSS, quite some themes use SASS to
easily provide different theme variants:
http://worldofgnome.org/adwaita-gtk-theme-is-now-ported-to-sass/
https://github.com/horst3180/arc-theme
...

OTOH I don't know if you really need these features in web applications.


Re: Preprocessing CSS

2016-05-25 Thread Jacob Carlborg via Digitalmars-d

On 2016-05-24 21:19, Dicebot wrote:


DDOC is the single worst thing in D tooling. I wish there was less of
it, not more.


I couldn't agree more.

--
/Jacob Carlborg


Re: Preprocessing CSS

2016-05-25 Thread Jacob Carlborg via Digitalmars-d

On 2016-05-25 05:47, Vladimir Panteleev wrote:


The other side of the coin is that any additional dependency added to
the build process is going to contribute in turning away people who want
to contribute to Phobos and just want to see what the resulting docs
will look like.


It already turns me away because of Ddoc.


DDoc syntax is not that alien in comparison


It's very alien.


and is pretty self-explanatory.


Not really. How do I know which macro to use to create a link to a D 
symbol? There's a bunch to choose from.



That said I don't see a lot of demand for preprocessing our CSS files at
the moment.

And, to add a data point, I have never used (or needed) neither SASS or
LESS, despite creating a lot of web apps and even working at a web
design company for a bit. I don't feel like I'm missing out.


What you don't know you don't miss ;)

--
/Jacob Carlborg


Re: Preprocessing CSS

2016-05-24 Thread Vladimir Panteleev via Digitalmars-d

On Wednesday, 25 May 2016 at 00:15:48 UTC, sarn wrote:
Pulling Ruby in as a dependency for dlang.org would be sucky, 
but anything other than SASS or LESS (or something syntax 
compatible) is going to turn away a lot of contributors.  A 
homebrew macro system would make most run screaming, no matter 
how easy it is to learn.


The other side of the coin is that any additional dependency 
added to the build process is going to contribute in turning away 
people who want to contribute to Phobos and just want to see what 
the resulting docs will look like.


DDoc syntax is not that alien in comparison, and is pretty 
self-explanatory. I honestly think there is a lot of exaggeration 
in this thread. Some people complaining in this thread have never 
even contributed anything in the first place!


That said I don't see a lot of demand for preprocessing our CSS 
files at the moment.


And, to add a data point, I have never used (or needed) neither 
SASS or LESS, despite creating a lot of web apps and even working 
at a web design company for a bit. I don't feel like I'm missing 
out.




Re: Preprocessing CSS

2016-05-24 Thread Seb via Digitalmars-d

On Wednesday, 25 May 2016 at 00:15:48 UTC, sarn wrote:
Pulling Ruby in as a dependency for dlang.org would be sucky, 
but anything other than SASS or LESS (or something syntax 
compatible) is going to turn away a lot of contributors.  A 
homebrew macro system would make most run screaming, no matter 
how easy it is to learn.


Isn't there libsass (http://sass-lang.com/libsass) and
https://github.com/sass/sassc?
Shouldn't that make it rather easy to set it up as a dependency 
in the makefile?

Just `git clone` and `make`.


Re: Preprocessing CSS

2016-05-24 Thread sarn via Digitalmars-d
On Tuesday, 24 May 2016 at 18:47:57 UTC, Andrei Alexandrescu 
wrote:

On 05/24/2016 02:03 PM, Thiez wrote:

Does the
experience help someone getting a job in the industry?


Probably not, again with the same caveat. I speculate 
experience with one of the other CSS scripting engines would 
also not be very helpful in landing a job as a software 
engineer.


Not at a big company, but in small companies with maybe three 
engineers, broad skillsets are very much in demand.  Even if 
you're nominally a backend engineer, you can't say, "Sorry, I 
just don't *do* CSS."


On my second-last contract there were about two engineers on the 
project at any time, and I felt like I wrote nearly as much 
JavaScript and (SASS) CSS as Python.


Pulling Ruby in as a dependency for dlang.org would be sucky, but 
anything other than SASS or LESS (or something syntax compatible) 
is going to turn away a lot of contributors.  A homebrew macro 
system would make most run screaming, no matter how easy it is to 
learn.


Re: Preprocessing CSS

2016-05-24 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 24 May 2016 at 21:02:48 UTC, Andrei Alexandrescu 
wrote:
One question is what's the audience for our css files - D 
engineers with some Web knowledge, or Web engineers with some 
or no D knowledge?


CSS isn't really *that* hard to use straight up. I wrote one of 
those fancy css nesters/macro expanders/calculator programs 
 but I don't use it 
that much because complicating the build at all isn't really 
worth it 95% of the time.


The dlang website isn't particularly complicated either. I say 
let's just keep the code simple.




Re: Preprocessing CSS

2016-05-24 Thread Andrei Alexandrescu via Digitalmars-d

On 05/24/2016 03:54 PM, Dmitry Olshansky wrote:

Designers have no idea what DDoc is and frankly better off never
learning it. Also using DDoc for CSS is stretching the tool's purpose.


Yah, that's reasonable. I'd choose ddoc over m4 though, the latter is 
very powerful but feels like the wrong kind of power. One question is 
what's the audience for our css files - D engineers with some Web 
knowledge, or Web engineers with some or no D knowledge? Historically 
it's been more of the former, but I suspect going forward we'll have 
more of the latter. -- Andrei


Re: Preprocessing CSS

2016-05-24 Thread Andrei Alexandrescu via Digitalmars-d

On 05/24/2016 05:02 PM, Andrei Alexandrescu wrote:

On 05/24/2016 03:54 PM, Dmitry Olshansky wrote:

Designers have no idea what DDoc is and frankly better off never
learning it. Also using DDoc for CSS is stretching the tool's purpose.


Yah, that's reasonable. I'd choose ddoc over m4 though, the latter is
very powerful but feels like the wrong kind of power. One question is
what's the audience for our css files - D engineers with some Web
knowledge, or Web engineers with some or no D knowledge? Historically
it's been more of the former, but I suspect going forward we'll have
more of the latter. -- Andrei


One other nice article on css: 
https://hacks.mozilla.org/2016/05/css-coding-techniques/ -- Andrei


Re: Preprocessing CSS

2016-05-24 Thread Dmitry Olshansky via Digitalmars-d

On 23-May-2016 23:03, Andrei Alexandrescu wrote:

On 05/23/2016 02:15 PM, Dmitry Olshansky wrote:

On 23-May-2016 19:04, Andrei Alexandrescu wrote:

Found this on reddit:
http://blog.00null.net/post/144763147991/using-gnu-m4-as-a-css-pre-processor.


I found it interesting because I found it useful to preprocess our
style.css on dlang.org with ddoc. Somehow that got lost a while ago. How
can I find the rename style.css -> style.css.dd and then back on github?
Thx! -- Andrei


Or just use SASS or LESS or any popular tool designed for CSS, no?


I looked into those and they seemed to add additional dependencies for
little else than what could be done with ddoc immediately. -- Andrei


Designers have no idea what DDoc is and frankly better off never 
learning it. Also using DDoc for CSS is stretching the tool's purpose.


--
Dmitry Olshansky


Re: Preprocessing CSS

2016-05-24 Thread Dicebot via Digitalmars-d
On 05/23/2016 07:04 PM, Andrei Alexandrescu wrote:
> Found this on reddit:
> http://blog.00null.net/post/144763147991/using-gnu-m4-as-a-css-pre-processor.
> I found it interesting because I found it useful to preprocess our
> style.css on dlang.org with ddoc. Somehow that got lost a while ago. How
> can I find the rename style.css -> style.css.dd and then back on github?
> Thx! -- Andrei

DDOC is the single worst thing in D tooling. I wish there was less of
it, not more.


Re: Preprocessing CSS

2016-05-24 Thread Andrei Alexandrescu via Digitalmars-d

On 05/24/2016 03:03 PM, Seb wrote:

On Tuesday, 24 May 2016 at 18:47:57 UTC, Andrei Alexandrescu wrote:

Is ddoc intended to generate css?


Yes. Ddoc is a general preprocessing engine, much like m4 discussed in
the article I mentioned.


I had a very hard time to get used to Ddoc and all the custom D macros,
but still I think the idea of shipping such a general engine with the
compiler is great. However we should make it more powerful then. Can't
we allow CTFE in Ddoc?
This would help a lot!


That would be the domain of more advanced formatting engines such as 
ddox. I wanted to get into ddox in the "I'll give myself 15 minutes to 
do this" manner two times - even tried to redo my personal website with 
ddox. I had to give up mostly due to documentation issues and 
installation difficulties, but to my credit - :o) - I did send Sönke a 
detailed email with what happened.



I have made a couple of improvement's to the dlang.org, but they all are
JS "post-processing" hacks, because at the moment one can't do this in Ddoc
See e.g.

https://github.com/dlang/dlang.org/pull/1288 (adding anchors)
https://github.com/dlang/dlang.org/pull/1307 (showing list of contributors)

A lot of other stuff (LaTeX support, search index, grouped overview menu
etc.) would also be possible then.


Agreed, there's a lot of opportunity there.


Andrei



Re: Preprocessing CSS

2016-05-24 Thread Seb via Digitalmars-d
On Tuesday, 24 May 2016 at 18:47:57 UTC, Andrei Alexandrescu 
wrote:

Is ddoc intended to generate css?


Yes. Ddoc is a general preprocessing engine, much like m4 
discussed in the article I mentioned.


I had a very hard time to get used to Ddoc and all the custom D 
macros, but still I think the idea of shipping such a general 
engine with the compiler is great. However we should make it more 
powerful then. Can't we allow CTFE in Ddoc?

This would help a lot!

I have made a couple of improvement's to the dlang.org, but they 
all are JS "post-processing" hacks, because at the moment one 
can't do this in Ddoc

See e.g.

https://github.com/dlang/dlang.org/pull/1288 (adding anchors)
https://github.com/dlang/dlang.org/pull/1307 (showing list of 
contributors)


A lot of other stuff (LaTeX support, search index, grouped 
overview menu etc.) would also be possible then.


Re: Preprocessing CSS

2016-05-24 Thread Wyatt via Digitalmars-d

On Tuesday, 24 May 2016 at 18:03:38 UTC, Thiez wrote:


If D owned a scissors factory, would you use those instead of 
knives when you eat your dinner and call it "dogfooding"?


Funny enough, scissors work quite well on food.  They're safer 
and faster than knives in many case. ;)


-Wyatt


Re: Preprocessing CSS

2016-05-24 Thread Jacob Carlborg via Digitalmars-d

On 2016-05-24 19:32, Andrei Alexandrescu wrote:


Who made that silly claim? Ah, indeed I now see how what I said could be
construed like that. Allow me to amend:

"I looked into those and they seemed to add additional dependencies for
little else than what could be done with ddoc immediately."

->

"I looked into those and for our modest needs they seemed to add
additional dependencies for little else than what could be done with
ddoc immediately."


I suspect we would like to add more and more features from Sass. You 
already talked about adding if statements to Ddoc ;)


--
/Jacob Carlborg


Re: Preprocessing CSS

2016-05-24 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 24 May 2016 at 18:47:57 UTC, Andrei Alexandrescu 
wrote:
If they're D contributors they're likely familiar with ddoc, 
and applicability to css is trivial and immediate.


A lot of D authors are at least familiar with it as inline 
documentation, but I haven't seen nearly as many use the 
standalone ddoc generator (the files with Ddoc at the top), and 
of them even fewer have probably used it for css, where the 
syntaxes kinda clash.


Probably not, again with the same caveat. I speculate 
experience with one of the other CSS scripting engines would 
also not be very helpful in landing a job as a software 
engineer.


There's a lot of job listings for front end engineers that say 
experience with those is preferred.


Re: Preprocessing CSS

2016-05-24 Thread Andrei Alexandrescu via Digitalmars-d

On 05/24/2016 02:03 PM, Thiez wrote:

On Tuesday, 24 May 2016 at 17:14:24 UTC, Andrei Alexandrescu wrote:

On 05/24/2016 10:39 AM, Gary Willoughby wrote:

On Monday, 23 May 2016 at 16:04:14 UTC, Andrei Alexandrescu wrote:

Found this on reddit:
http://blog.00null.net/post/144763147991/using-gnu-m4-as-a-css-pre-processor.

I found it interesting because I found it useful to preprocess our
style.css on dlang.org with ddoc. Somehow that got lost a while ago.
How can I find the rename style.css -> style.css.dd and then back on
github? Thx! -- Andrei


I just want to throw out there that we would get more contributors to
the website were it to use industry standard tools. i.e. Sass, Less,
etc.


That'd need to be balanced with dogfooding. -- Andrei


Is ddoc intended to generate css?


Yes. Ddoc is a general preprocessing engine, much like m4 discussed in 
the article I mentioned.



Do people who have experience with css
have experience doing this with ddoc?


If they're D contributors they're likely familiar with ddoc, and 
applicability to css is trivial and immediate.



Will experience in using ddoc for
css generation help someone in projects other than D?


Probably not, but "experience" is misapplied here - we're talking about 
trivial application here.



Does the
experience help someone getting a job in the industry?


Probably not, again with the same caveat. I speculate experience with 
one of the other CSS scripting engines would also not be very helpful in 
landing a job as a software engineer.



I'm pretty sure the answer to all of these answers is "no"


That's not the case, so the jury shall ignore the consequent :o).


Andrei



Re: Preprocessing CSS

2016-05-24 Thread Thiez via Digitalmars-d
On Tuesday, 24 May 2016 at 17:14:24 UTC, Andrei Alexandrescu 
wrote:

On 05/24/2016 10:39 AM, Gary Willoughby wrote:
On Monday, 23 May 2016 at 16:04:14 UTC, Andrei Alexandrescu 
wrote:

Found this on reddit:
http://blog.00null.net/post/144763147991/using-gnu-m4-as-a-css-pre-processor.
I found it interesting because I found it useful to 
preprocess our
style.css on dlang.org with ddoc. Somehow that got lost a 
while ago.
How can I find the rename style.css -> style.css.dd and then 
back on

github? Thx! -- Andrei


I just want to throw out there that we would get more 
contributors to
the website were it to use industry standard tools. i.e. Sass, 
Less, etc.


That'd need to be balanced with dogfooding. -- Andrei


Is ddoc intended to generate css? Do people who have experience 
with css have experience doing this with ddoc? Will experience in 
using ddoc for css generation help someone in projects other than 
D? Does the experience help someone getting a job in the industry?


I'm pretty sure the answer to all of these answers is "no", so 
why is this even being considered? And how does using ddoc for 
css generation even qualify as dogfooding? If D owned a scissors 
factory, would you use those instead of knives when you eat your 
dinner and call it "dogfooding"?


Re: Preprocessing CSS

2016-05-24 Thread Andrei Alexandrescu via Digitalmars-d

On 05/24/2016 09:39 AM, Jacob Carlborg wrote:

On 2016-05-24 09:49, Vladimir Panteleev wrote:


If you find that your style sheet needs loops, something has gone
terribly wrong.


Fair enough. But claiming that Ddoc can do what Sass can, is just plain
wrong.


Who made that silly claim? Ah, indeed I now see how what I said could be 
construed like that. Allow me to amend:


"I looked into those and they seemed to add additional dependencies for 
little else than what could be done with ddoc immediately."


->

"I looked into those and for our modest needs they seemed to add 
additional dependencies for little else than what could be done with 
ddoc immediately."



Andrei



Re: Preprocessing CSS

2016-05-24 Thread Andrei Alexandrescu via Digitalmars-d

On 05/24/2016 10:39 AM, Gary Willoughby wrote:

On Monday, 23 May 2016 at 16:04:14 UTC, Andrei Alexandrescu wrote:

Found this on reddit:
http://blog.00null.net/post/144763147991/using-gnu-m4-as-a-css-pre-processor.
I found it interesting because I found it useful to preprocess our
style.css on dlang.org with ddoc. Somehow that got lost a while ago.
How can I find the rename style.css -> style.css.dd and then back on
github? Thx! -- Andrei


I just want to throw out there that we would get more contributors to
the website were it to use industry standard tools. i.e. Sass, Less, etc.


That'd need to be balanced with dogfooding. -- Andrei


Re: Preprocessing CSS

2016-05-24 Thread Gary Willoughby via Digitalmars-d

On Monday, 23 May 2016 at 16:04:14 UTC, Andrei Alexandrescu wrote:
Found this on reddit: 
http://blog.00null.net/post/144763147991/using-gnu-m4-as-a-css-pre-processor. I found it interesting because I found it useful to preprocess our style.css on dlang.org with ddoc. Somehow that got lost a while ago. How can I find the rename style.css -> style.css.dd and then back on github? Thx! -- Andrei


I just want to throw out there that we would get more 
contributors to the website were it to use industry standard 
tools. i.e. Sass, Less, etc.


Re: Preprocessing CSS

2016-05-24 Thread Jacob Carlborg via Digitalmars-d

On 2016-05-24 09:49, Vladimir Panteleev wrote:


If you find that your style sheet needs loops, something has gone
terribly wrong.


Fair enough. But claiming that Ddoc can do what Sass can, is just plain 
wrong.


--
/Jacob Carlborg


Re: Preprocessing CSS

2016-05-24 Thread Vladimir Panteleev via Digitalmars-d

On Monday, 23 May 2016 at 16:04:14 UTC, Andrei Alexandrescu wrote:
Found this on reddit: 
http://blog.00null.net/post/144763147991/using-gnu-m4-as-a-css-pre-processor. I found it interesting because I found it useful to preprocess our style.css on dlang.org with ddoc. Somehow that got lost a while ago. How can I find the rename style.css -> style.css.dd and then back on github? Thx! -- Andrei


There was no style.css.dd, but there was a cssmenu.css.dd. It was 
removed in the last redesign, as it was no longer needed.




Re: Preprocessing CSS

2016-05-24 Thread Vladimir Panteleev via Digitalmars-d

On Tuesday, 24 May 2016 at 07:05:12 UTC, Jacob Carlborg wrote:

On 2016-05-23 22:03, Andrei Alexandrescu wrote:

I looked into those and they seemed to add additional 
dependencies for
little else than what could be done with ddoc immediately. -- 
Andrei


Sass supports control flow, like if statements, for loops and 
so on.


If you find that your style sheet needs loops, something has gone 
terribly wrong.


Re: Preprocessing CSS

2016-05-24 Thread Jacob Carlborg via Digitalmars-d

On 2016-05-23 22:03, Andrei Alexandrescu wrote:


I looked into those and they seemed to add additional dependencies for
little else than what could be done with ddoc immediately. -- Andrei


Sass supports control flow, like if statements, for loops and so on.

--
/Jacob Carlborg


Re: Preprocessing CSS

2016-05-23 Thread Andrei Alexandrescu via Digitalmars-d

On 05/23/2016 02:15 PM, Dmitry Olshansky wrote:

On 23-May-2016 19:04, Andrei Alexandrescu wrote:

Found this on reddit:
http://blog.00null.net/post/144763147991/using-gnu-m4-as-a-css-pre-processor.

I found it interesting because I found it useful to preprocess our
style.css on dlang.org with ddoc. Somehow that got lost a while ago. How
can I find the rename style.css -> style.css.dd and then back on github?
Thx! -- Andrei


Or just use SASS or LESS or any popular tool designed for CSS, no?


I looked into those and they seemed to add additional dependencies for 
little else than what could be done with ddoc immediately. -- Andrei


Re: Preprocessing CSS

2016-05-23 Thread Dmitry Olshansky via Digitalmars-d

On 23-May-2016 19:04, Andrei Alexandrescu wrote:

Found this on reddit:
http://blog.00null.net/post/144763147991/using-gnu-m4-as-a-css-pre-processor.
I found it interesting because I found it useful to preprocess our
style.css on dlang.org with ddoc. Somehow that got lost a while ago. How
can I find the rename style.css -> style.css.dd and then back on github?
Thx! -- Andrei


Or just use SASS or LESS or any popular tool designed for CSS, no?

--
Dmitry Olshansky


Preprocessing CSS

2016-05-23 Thread Andrei Alexandrescu via Digitalmars-d
Found this on reddit: 
http://blog.00null.net/post/144763147991/using-gnu-m4-as-a-css-pre-processor. 
I found it interesting because I found it useful to preprocess our 
style.css on dlang.org with ddoc. Somehow that got lost a while ago. How 
can I find the rename style.css -> style.css.dd and then back on github? 
Thx! -- Andrei