Closed Bug 1386336 Opened 2 years ago Closed 2 years ago

Generate robots.txt at checksetup.pl from a template

Categories

(bugzilla.mozilla.org :: General, enhancement)

Production
enhancement
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: dylan, Assigned: umohm12)

References

Details

Attachments

(1 file)

45 bytes, text/x-github-pull-request
dylan
: review+
Details | Review
Compare: 
https://bugzilla.mozilla.org/robots.txt
https://bugzilla-dev.allizom.org/robots.txt

As a result of this, dev and prod are forks of each other.

Ideally, robots.txt would be a template and be generated by checksetup.pl (like several other files).

The SITEMAP stuff would be a template hook in the SiteMap extension.
outline:

- Add an entry for 'robots.txt' to https://github.com/mozilla-bteam/bmo/blob/master/Bugzilla/Install/Filesystem.pm#L407
- remove robots.txt from VCS
- new template global/robots.txt.tmpl (based on current robots.txt, minus the SiteMap line)
- add a template hook to the end of the above template. Look for examples in the existing template files, something like Hook.process()...
- add new template hook (somewhere, we'll discuss/grep the code together)
Attached file github pull request
Attachment #8893641 - Flags: review+
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Blocks: 1388526
You need to log in before you can comment on or make changes to this bug.