Two senses: literal ("write an essay/article") and figurative ("make political or rhetorical hay out of something"). The figurative is far more common - usually with
在...
上做文章 ("to make an issue of [topic]") or
拿...
做文章 ("to use [thing] as ammunition").
大做文章 "make a big issue of" adds emphasis.