Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove website generation code #201

Merged
merged 1 commit into from
Jan 25, 2022
Merged

remove website generation code #201

merged 1 commit into from
Jan 25, 2022

Conversation

alaviss
Copy link
Contributor

@alaviss alaviss commented Jan 24, 2022

Summary

This pull purges the code related to Nim's website generation from the codebase.

Details

The pieces being removed are:

  • koch's "web" doc generation, which has the following differences to "regular" docs:
    • Docs meant for publishing have Google Analytics (GA) enabled.
    • nimblepkglist was bundled to enable the display of the nimble catalogue in "Standard library" page. This feature is no longer used, even on Nim's published docs, since it is fairly slow and was not updated for the new docs layout. Alternative providers like https://nimble.directory have completely superseded it.
  • Google Analytics script injection in docgen: The script is injected whenever --doc.googleAnalytics:<GA code> is passed to nim doc.
  • nimweb: A tool that appears to be used to generate the first generation of the Nim's website. Needless to say, it's pretty abandoned given the Jekyll-based version: https://github.com/nim-lang/website.

Closes #129 as this pull removes nimblepkglist as well, and the author of that PR is no longer responsive.

The pieces being removed are:

- `koch`'s "web" doc generation, which has the following differences to
  "regular" docs:
  - Docs meant for publishing have Google Analytics (GA) enabled.
  - `nimblepkglist` was bundled to enable the display of the nimble
    catalogue in "Standard library" page. This feature is no longer
    used, even on Nim's published docs, since it is fairly slow and was
    not updated for the new docs layout. Alternative providers like
    https://nimble.directory have completely superseded it.
- Google Analytics script injection in docgen: The script is injected
  whenever `--doc.googleAnalytics:<GA code>` is passed to `nim doc`.
- `nimweb`: A tool that appears to be used to generate the first
  generation of the Nim's website. Needless to say, it's pretty
  abandoned given the Jekyll-based version:
  https://github.com/nim-lang/website.

We have no use for any of these, so shake them off to reduce code size.
An added benefit is that koch docs is slightly faster as we are no
longer generating the same documentation twice.
Copy link
Collaborator

@saem saem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bors r+

Excellent

@bors
Copy link
Contributor

bors bot commented Jan 25, 2022

Build succeeded:

@bors bors bot merged commit 7a872f4 into nim-works:devel Jan 25, 2022
@juancarlospaco
Copy link
Contributor

I can confirm author is responsive.

@alaviss alaviss deleted the no-web branch January 25, 2022 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants