1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Commit Graph

245 Commits

Author SHA1 Message Date
Peter Bengtsson
8362602503 do rendering end-to-end tests with a real server (#26169)
* reinstate

* start server manually

* routing tests too

* skip more

* sleep more and fail if not 200

* use e2etest for content/ too

* feedbacked
2022-03-18 17:06:12 -04:00
literarytea
1c203bf2c1 Site policy content re-org (#26112)
* Site policy reorg
2022-03-15 13:35:02 +00:00
Brian Evans
bb23efed69 Update footer.js 2022-03-14 09:08:43 -07:00
Brian Evans
ea49b45ec4 Update footer.js
removed unnecessary tests
2022-03-14 08:59:29 -07:00
Kevin Heis
9901f999d2 Merge branch 'main' into enterprise-support-link 2022-03-12 08:47:49 -08:00
Brian Evans
1ba55397c8 update enterprise contact link 2022-03-11 20:45:46 +00:00
Rachael Sewell
67360f5ad5 refactor rest code (#25879) 2022-03-11 20:23:38 +00:00
Peter Bengtsson
95297c3c9d Simplify getBreadcrumbs (#26015)
* fix getBreadcrumbs

* don't go too deep

* remove commented out code
2022-03-09 01:14:49 +00:00
Peter Bengtsson
e18396c7fd avoid mocking in robots.txt testing (#26018)
* avoid mocking in robots.txt testing

* remove package
2022-03-09 01:08:49 +00:00
Peter Bengtsson
9d4b913bdc language redirects without cache (#25872)
* redirect to your preferred language (#25664)

* redirect to your preferred language

* refactorings

* use js-cookies

* make sure no cache when language is involved in the redirect

* fix tests
2022-03-07 16:25:22 +00:00
Peter Bengtsson
d75c49b1c6 loadPages by 'en' only (#25846) 2022-03-04 16:24:24 +00:00
Peter Bengtsson
693fb35bc6 links on /rest/overview/endpoints (#25771)
* links on /rest/overview/endpoints-available-for-github-apps

* tests

* remove unused code
2022-03-03 17:45:37 +00:00
Peter Bengtsson
e69144b51f temporarily re-introduct includes/rest_operations_at_current_path.html (#25719) 2022-03-01 08:32:30 -05:00
Rachael Sewell
2ade7d8489 reactify rest pages (#25005) 2022-02-28 18:30:54 +00:00
Peter Bengtsson
95a3e82ac5 remove 'redirects versioned category page' test (#25304) 2022-02-15 21:44:34 +00:00
Peter Bengtsson
a867973876 serve /apple-touch-icon.png (#25371)
* serve apple-touch-icon.png

* rename

* 'directives'

* use a lazy but caching pattern

* update code comment
2022-02-15 21:35:08 +00:00
Peter Bengtsson
2f4af03975 be loud about failed learning track processing (#25370)
* be loud about failed learning track processing

* rendering test

* undo whitespace cleanup
2022-02-15 20:14:13 +00:00
Peter Bengtsson
07c8fc3c2a Decouple redirects from language (#24597)
* experimenting with redirects

* cleanup developer.json

* wip

* clean console.log

* progress

* some progress

* progress

* much progress

* debugging tests

* hacky progress

* ditch latest -> number redirects

* minor

* hacky progress

* lots of progress

* some small fixes

* fix rendering tests

* small fixes

* progress

* undo debugging

* better

* routing tests OK

* more cleaning

* unit tests

* undoing lineending edit

* undoing temporary debugging

* don't ever set this.redirects on Page

* cope with archived version redirects

* adding code comments on the major if statements

* address all feedback

* update README about redirects

* delete invalid test

* fix feedback
2022-02-14 20:19:10 +00:00
Peter Bengtsson
caf0791694 support archived enterprise assets (#25224)
* support archived enterprise assets

* better tests
2022-02-11 15:58:05 -05:00
Mike Surowiec
624581e527 Remove most of Heroku references (#25208)
* remove most of heroku references

* remove more stuff

* update codeowners
2022-02-10 17:36:07 -06:00
Peter Bengtsson
24d3ea6814 remove catch-bad-accept-language middleware (#25231) 2022-02-10 18:51:30 +00:00
Peter Bengtsson
5c9a83be7c Stop doing Gzip in the middleware (#25227) 2022-02-10 11:01:56 -05:00
Peter Bengtsson
e535e52280 minimize caching on static asset 404s (#25192) 2022-02-09 20:03:15 +00:00
Peter Bengtsson
94d976c1fa faster 404 for missing static assets (#25124) 2022-02-08 18:30:07 +00:00
Peter Bengtsson
2599d72116 conditionally clone docs-early-access by branchname (#24674)
* conditionally clone docs-early-access by branchname

* fix path

* right api

* the correct use of Octokit

* try that

* destructuring total_count

* test early access with fs.existsSync

* debugging

* bad lookup

* better lookup technique

* trying something

* always check it out

* with debugging

* with token

* with path

* better

* go for it

* only on docs-internal

* better name

* formatting

* tidying up

* correct octokit

* feedbacked

* correct hopefully

* final version

* disable test that checks for perfect translation-to-English file parity

* Accidentally committed in the wrong branch.

This reverts commit adee780718ea7414934e2257d17b0c004bd804af.

* match the azure-preview-env-deploy.yml
2022-02-08 17:20:51 +00:00
Peter Bengtsson
f33ab1cf89 set 'manul-purge' surrogate key on assets/cb- URLs (#25028) 2022-02-04 11:55:40 -05:00
Robert Sese
c5f9788223 Version the 'All products' link (#24972)
* Don't show link no matter what version you're on

* Maintain current version in link

* No 'All products' link on homepage for all versions
2022-02-03 16:31:05 +00:00
Peter Bengtsson
6361591c45 serve a /favicon.ico (#24935)
* serve a /favicon.ico

* fix exception

* avoid res.sendFile() bcause CodeQL is worried
2022-02-03 00:11:59 +00:00
Jules Parker
75d1a1ed10 fixes test, potentially 2022-02-01 16:45:57 +01:00
Jules Parker
264c3f9638 Merge branch 'jules-4800' of github.com:github/docs-internal into jules-4800 2022-01-25 12:43:38 +01:00
Jules Parker
e20f8548cf fixes conflict 2022-01-25 12:43:09 +01:00
Peter Bengtsson
daf6c65884 rewrite enterprise-serverl@atest links to enterprise-server@<version> (#24476)
* rewrite enterprise-server@latest links to enterprise-server@<actual>

* update test
2022-01-21 13:39:48 +00:00
Peter Bengtsson
bebdeea0ee fix test 2022-01-20 09:27:11 -05:00
Matt Pollard
bc80a1ad60 Merge branch 'main' into jules-4800 2022-01-20 14:24:04 +01:00
Steve Guntrip
11d193bd7f Reorganize support articles 2022-01-18 13:24:02 +00:00
Robert Sese
cc69799558 a11y: landing page headings adjustments (#24295)
* Adjust heading level and only heading with intro text

* Adjust heading level

* Adjust code example and guide card heading levels

* Adjust tests for new heading levels

* Adjust rendering test for new heading levels
2022-01-14 17:23:05 +00:00
Jules Parker
d1ace77811 fixes tests 2022-01-13 15:08:29 +01:00
Jules Parker
63d3dedbb7 fixes tests 2022-01-13 14:59:12 +01:00
Jules Parker
1b05aa958d fixes tests 2022-01-13 14:44:37 +01:00
Jules Parker
ade38a83bf fixes tests 2022-01-13 14:33:12 +01:00
Jules Parker
6f1b81b1b9 fixes tests 2022-01-13 14:16:22 +01:00
Jules Parker
acf612ba03 fixes tests 2022-01-13 13:59:11 +01:00
Jules Parker
4327a25e21 fixing tests 2022-01-13 12:29:57 +01:00
Jules Parker
a7d13278d6 fixing tests 2022-01-13 12:22:16 +01:00
Jules Parker
7f6e24474d fixing tests 2022-01-13 11:59:43 +01:00
Jules Parker
18ffa1e900 fixing tests 2022-01-13 11:46:44 +01:00
Jules Parker
f1457c657c fixing tests 2022-01-13 11:36:28 +01:00
Jules Parker
9e731c46be Merge branch 'jules-4800' of github.com:github/docs-internal into jules-4800 2022-01-13 11:24:01 +01:00
Jules Parker
ecca1b3cf4 fixing tests 2022-01-13 11:21:27 +01:00
docubot
78edefdd7c New translation batch for ja (#24260)
* Add crowdin translations

* Run script/i18n/homogenize-frontmatter.js

* Run script/i18n/lint-translation-files.js --check parsing

* run script/i18n/reset-files-with-broken-liquid-tags.js --language=ja

* run script/i18n/reset-known-broken-translation-files.js

* Check in ja CSV report

* correct fixture usage

Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2022-01-12 20:18:20 +00:00