All user-provided content on SO is given under the terms of the CC-by-SA Creative Commons license. Among other things, this allows copying, but only so long as you provide attribution to the original.
Under normal circumstances, attribution is easy enough to handle: a text blurb and a link to the source of the SO content. Even if the post is deleted, it is still visible to 20K rep-users, and thus attribution still qualifies. We only truly delete content rarely.
Which brings us to the end of Docs.SO. It is going away. Outside of an archive, Docs.SO will be gone. And I'm not sure if it will be easy to link to a particular example in an archive.
So if you want to attribute content from Docs.SO, how exactly do you do it? Is a link to the Docs.SO archive sufficient, or does it have to be a link to something within it?