mithril.js icon indicating copy to clipboard operation
mithril.js copied to clipboard

Website build process should delete existing HTML files

Open orbitbot opened this issue 7 years ago • 11 comments

Since the website is indexed by Google and the like, end users may end up navigating to stale data, see chat @ https://gitter.im/lhorie/mithril.js?at=58c6bed600c00c3d4ffee6b0 and discussions before that.

I have the nagging feeling this might already have been implemented, if so sorry about the extra issue...

orbitbot avatar Mar 13 '17 15:03 orbitbot

I've already pointed this out to @lhorie, but pushing a fresh copy each time would probably be best.

dead-claudia avatar Mar 13 '17 17:03 dead-claudia

The trick with this is that old version docs in /archive need to stick around, but everything else should be blown up. I'll see what I can figure out.

tivac avatar Mar 27 '17 17:03 tivac

There isn't a good way to do this w/ the gh-pages package we're using to copy things to that branch. Would need to switch to handling it manually, bleh.

tivac avatar Apr 07 '17 20:04 tivac

@tivac I've always found it easier to just write a custom hack to generate simple sites like these.

dead-claudia avatar Apr 08 '17 02:04 dead-claudia

@isiahmeadows I am averse to writing code if I can avoid it. If this continues to be a problem I can do the work to make it happen, but gonna table this for now.

tivac avatar Apr 08 '17 04:04 tivac

@tivac Metalsmith + a custom clean might work.

dead-claudia avatar Apr 08 '17 04:04 dead-claudia

I don't want to recreate the entire process, I'll need to replace the gh-pages module with some actual git commands to properly take the generated ./dist folder and splat it onto the gh-pages branch.

tivac avatar Apr 08 '17 05:04 tivac

@tivac What about the archive directory?

Although, to be fair, I'm just throwing ideas at the wall. I don't have much investment other than it working. 😉

dead-claudia avatar Apr 08 '17 06:04 dead-claudia

Yeah, that's the annoying bit that requires I not use the built-in cleaning functionality in the gh-pages module.

😠

tivac avatar Apr 08 '17 06:04 tivac

@tivac Just filed tschaub/gh-pages#180.

dead-claudia avatar Jun 15 '17 08:06 dead-claudia

@orbitbot is this still an issue? Can you check plz?

StephanHoyer avatar Feb 21 '22 13:02 StephanHoyer