docs/script/content-migrations
James M. Greene fb30a0766f
Unravel pages (the array + map object) (#16708)
* Revise the 'pages' module to export two methods: 'loadPages' and 'loadPageMap'

Update all existing references to use 'loadPages' for now

* Remove explicit Promise resolutions on loadPage* methods

* Condense reduction method into its now-singular usage spot

* Opt for for-of instead of forEach

* Make require of pages in warm-server more explicit

* Be more explicit about find-page using a pageMap

* Be more explicit about find-page-in-version using a pageMap

* Be more explicit about site-tree using a pageMap

* Extract the map creation from loadPageMap

* Be more explicit about using a pageMap

* Update redirects precompile to take two arguments: pageList, pageMap

* Rename internal loadPages method to loadPageList

* Clarify pageMap is what is stored in context.pages

* Use loadPageMap in tests and stuff
2020-12-03 22:31:10 +00:00
..
README.md Script to update v3 and v4 links (#16434) 2020-11-12 13:48:17 -05:00
extended-markdown-tags.js Hello git history spelunker! 2020-09-27 14:10:11 +02:00
octicon-tag.js Hello git history spelunker! 2020-09-27 14:10:11 +02:00
remove-html-comments-from-index-files.js add script 2020-11-24 09:10:34 -05:00
site-data-tag.js Update all files to use `{% data %}` (#15253) 2020-09-29 16:01:04 -04:00
update-developer-site-links.js Unravel pages (the array + map object) (#16708) 2020-12-03 22:31:10 +00:00

README.md

Content migration scripts

This directory stores scripts that modify content and/or data files. Because writers are updating content all the time, scripts in here require more cross-team coordination and planning before they are run. Make sure to consider whether a script added here also needs to be run on translation files or if we can wait for the changes to come in organically via Crowdin.