You've already forked comprehensive-rust
							
							
				mirror of
				https://github.com/google/comprehensive-rust.git
				synced 2025-10-31 08:37:45 +02:00 
			
		
		
		
	Automatically format YAML, CSS, and JS files (#1272)
Initially, I also formatted the templates in `theme/`, but this triggers https://github.com/prettier/prettier/issues/11834. So I exclude them for now. --------- Co-authored-by: Ming-Ying Chung <mych@chromium.org>
This commit is contained in:
		
							
								
								
									
										67
									
								
								.github/labeler.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										67
									
								
								.github/labeler.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,51 +1,50 @@ | ||||
| translation: | ||||
| - po/** | ||||
|   - po/** | ||||
|  | ||||
| 'translation/bn': | ||||
| - po/bn.po | ||||
| "translation/bn": | ||||
|   - po/bn.po | ||||
|  | ||||
| 'translation/da': | ||||
| - po/da.po | ||||
| "translation/da": | ||||
|   - po/da.po | ||||
|  | ||||
| 'translation/de': | ||||
| - po/de.po | ||||
| "translation/de": | ||||
|   - po/de.po | ||||
|  | ||||
| 'translation/el': | ||||
| - po/el.po | ||||
| "translation/el": | ||||
|   - po/el.po | ||||
|  | ||||
| 'translation/es': | ||||
| - po/es.po | ||||
| "translation/es": | ||||
|   - po/es.po | ||||
|  | ||||
| 'translation/fr': | ||||
| - po/fr.po | ||||
| "translation/fr": | ||||
|   - po/fr.po | ||||
|  | ||||
| 'translation/id': | ||||
| - po/id.po | ||||
| "translation/id": | ||||
|   - po/id.po | ||||
|  | ||||
| 'translation/it': | ||||
| - po/it.po | ||||
| "translation/it": | ||||
|   - po/it.po | ||||
|  | ||||
| 'translation/ja': | ||||
| - po/ja.po | ||||
| "translation/ja": | ||||
|   - po/ja.po | ||||
|  | ||||
| 'translation/ko': | ||||
| - po/ko.po | ||||
| "translation/ko": | ||||
|   - po/ko.po | ||||
|  | ||||
| 'translation/pt-BR': | ||||
| - po/pt-BR.po | ||||
| "translation/pt-BR": | ||||
|   - po/pt-BR.po | ||||
|  | ||||
| 'translation/ru': | ||||
| - po/ru.po | ||||
| "translation/ru": | ||||
|   - po/ru.po | ||||
|  | ||||
| 'translation/tr': | ||||
| - po/tr.po | ||||
| "translation/tr": | ||||
|   - po/tr.po | ||||
|  | ||||
| 'translation/zh-CN': | ||||
| - po/zh-CN.po | ||||
| "translation/zh-CN": | ||||
|   - po/zh-CN.po | ||||
|  | ||||
| 'translation/zh-TW': | ||||
| - po/zh-TW.po | ||||
| "translation/zh-TW": | ||||
|   - po/zh-TW.po | ||||
|  | ||||
|  | ||||
| 'translation/fa': | ||||
| - po/fa.po | ||||
| "translation/fa": | ||||
|   - po/fa.po | ||||
|   | ||||
							
								
								
									
										8
									
								
								.github/workflows/labeler.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/labeler.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,6 +1,6 @@ | ||||
| name: "Pull Request Labeler" | ||||
| on: | ||||
| - pull_request_target | ||||
|   - pull_request_target | ||||
|  | ||||
| jobs: | ||||
|   triage: | ||||
| @@ -9,6 +9,6 @@ jobs: | ||||
|       pull-requests: write | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     - uses: actions/labeler@v4 | ||||
|       with: | ||||
|         sync-labels: true | ||||
|       - uses: actions/labeler@v4 | ||||
|         with: | ||||
|           sync-labels: true | ||||
|   | ||||
| @@ -13,6 +13,7 @@ | ||||
|   "excludes": [ | ||||
|     "/book/", | ||||
|     "/src/", | ||||
|     "/theme/*.hbs", | ||||
|     "/third_party/", | ||||
|     "target/" | ||||
|   ], | ||||
| @@ -20,6 +21,7 @@ | ||||
|     "https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072", | ||||
|     "https://plugins.dprint.dev/json-0.17.4.wasm", | ||||
|     "https://plugins.dprint.dev/markdown-0.16.1.wasm", | ||||
|     "https://plugins.dprint.dev/toml-0.5.4.wasm" | ||||
|     "https://plugins.dprint.dev/toml-0.5.4.wasm", | ||||
|     "https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe" | ||||
|   ] | ||||
| } | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
|   right: 10px; | ||||
| } | ||||
|  | ||||
| [dir=rtl] #language-list { | ||||
| [dir="rtl"] #language-list { | ||||
|   left: 10px; | ||||
|   right: auto; | ||||
| } | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
|  | ||||
| (function() { | ||||
| (function () { | ||||
|   let notes = document.querySelector("details"); | ||||
|   // Create an unattached DOM node for the code below. | ||||
|   if (!notes) { | ||||
| @@ -32,7 +32,7 @@ | ||||
|  | ||||
|   // Update the window. This shows/hides controls as necessary for regular and | ||||
|   // speaker note pages. | ||||
|   function applyState()  { | ||||
|   function applyState() { | ||||
|     if (window.location.hash == "#speaker-notes-open") { | ||||
|       if (getState() != "popup") { | ||||
|         markDefunct(); | ||||
| @@ -116,9 +116,11 @@ | ||||
|         setState("popup"); | ||||
|         applyState(); | ||||
|       } else { | ||||
|         window.alert("Could not open popup, please check your popup blocker settings."); | ||||
|         window.alert( | ||||
|           "Could not open popup, please check your popup blocker settings." | ||||
|         ); | ||||
|       } | ||||
|     }) | ||||
|     }); | ||||
|     let popOutIcon = document.createElement("i"); | ||||
|     popOutIcon.classList.add("fa", "fa-external-link"); | ||||
|     popOut.append(popOutIcon); | ||||
| @@ -179,9 +181,11 @@ | ||||
|     } | ||||
|  | ||||
|     // Update prev/next buttons to keep speaker note state. | ||||
|     document.querySelectorAll('a[rel="prev"], a[rel="next"]').forEach((elem) => { | ||||
|       elem.href += "#speaker-notes-open"; | ||||
|     }); | ||||
|     document | ||||
|       .querySelectorAll('a[rel="prev"], a[rel="next"]') | ||||
|       .forEach((elem) => { | ||||
|         elem.href += "#speaker-notes-open"; | ||||
|       }); | ||||
|   } | ||||
|  | ||||
|   let timeout = null; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user