Commit graph

42 commits

Author SHA1 Message Date
Ed Sanders 14aaf038c7 updateSubmodule: Handle modified i18n keys
Change-Id: I02a391bdad1b277c668e2a61bc44c6ac5c849122
2024-06-20 14:47:07 +01:00
Ed Sanders 13df114f78 updateSubmodule: Consistently use extended regexes
Change-Id: I6c1e9c50b6ae64d183d2d486a66cceb07f612d06
2024-06-20 14:34:02 +01:00
Ed Sanders a1e807cacd updateSubmodule: Show removed files/i18n keys as well as added
Also format these lists with a '- ' prefix.

Change-Id: I4ed9a6c99474057b3053de1f8cda92cd8c375941
2023-12-08 16:51:11 +00:00
Ed Sanders 7eb2d5dcd6 updateSubmodule: Don't fail silently due to grep result being empty
Change-Id: Ie9ffc5bf0ee09d8e5f3b5d6f7e6d94ba9db8beda
2023-12-07 17:45:15 +00:00
Ed Sanders 74991b163a updateSubmodule: Show whole commit message in console output
We lose the color from the git log output, but having
all the information is more useful.

Change-Id: I06b430ce994aa5af4edc700db4676cccd2f9404d
2023-12-02 10:12:40 +00:00
Ed Sanders 770e3e90fa updateSubmodule: Only show new files for resource loader (js/css/less)
We don't care if there are new config files or new i18n files.

Also move --color=never to grep, as that will remove colours from
git diff.

Change-Id: I09ffcb2beefad95b5530b61a9e99c2dbf20c511f
2023-12-02 10:09:21 +00:00
Ed Sanders d3b3c64bb6 updateSubmodule: Remove debug code
Change-Id: I15d9db60e57cf1177d106a203343124ac9765622
2023-11-17 15:59:58 +00:00
Ed Sanders 7ac1622753 updateSubmodule: List new files and new i18n keys in commit message
These new files and message keys will likely need to be
added to extension.json.

Change-Id: I23067fe946038a2bea3eebe74ecffd274e9138b5
2023-11-17 13:35:47 +00:00
Ed Sanders 4870a285f2 updateSubmodule.sh: Use gerrit remote if it exists
Change-Id: I82f23ce8721c16d57f5c918d4ceda634c73bc959
2023-11-10 18:13:04 +00:00
James D. Forrester f3e69d80ef updateSubmodule: Put list in topo (merged), not written, order
Change-Id: Ib563468ca55993784b4372ec2c9dc7916f5b8ed8
2018-05-10 08:51:37 -07:00
Bartosz Dziewoński 3832859fff bin/updateSubmodule.sh: Copy 'Bug:' lines from included changes
This seems to be a new convention and it seems that James has been
doing it by hand. *shakes head*

Change-Id: I519498c9b81d44dc7f8048d128b4fe526cb7b82d
2017-09-13 18:14:41 +02:00
jenkins-bot 18c1ae498e Merge "Add a clean-up script for use as a pre-commit hook" 2015-09-14 00:33:31 +00:00
James D. Forrester aadadbabd0 bin/listRecentCommits.sh: Don't try to loop over OOUI commits
Change-Id: Id886445c3277119ec960079ba33109f1bceaf23d
2015-08-25 10:27:20 -07:00
James D. Forrester f81ce29bda Add a clean-up script for use as a pre-commit hook
Change-Id: I0e87cbd2d653f4125e2a3d40cda30a3464a7a287
2015-07-03 01:57:03 +00:00
jenkins-bot 3152dc104f Merge "Follow-up a4bbe98cd: Kill emptiness hack check in bin/updateSubmodule.sh too" 2015-04-29 00:58:51 +00:00
James D. Forrester 1972afe27e Follow-up a4bbe98cd: Kill emptiness hack check in bin/updateSubmodule.sh too
Change-Id: Ia6e530512413268aeafa09918fa1edf4342dd7e1
2015-04-28 17:53:22 -07:00
jenkins-bot 478f24bf73 Merge "bin: Remove buildi18n-*.sh, unused since 2013" 2015-04-29 00:14:32 +00:00
James D. Forrester c4767d5b5e bin: Remove buildi18n-*.sh, unused since 2013
Change-Id: Iaab453082a4f0364cb6def5d50cd6f0d2c1c12e4
2015-04-28 17:10:33 -07:00
jenkins-bot 368f7a29a8 Merge "bin: Enable 'set -e' and 'set -u' in bash scripts" 2015-04-29 00:00:52 +00:00
Timo Tijhof 6030043e31 Remove obsolete bin/generateDocs.sh script
No longer used by Jenkins. Entry point is now `npm run doc`.

Change-Id: Ie8ddb1657f6e5c7703b8ca611fd04506cf7c2a04
2015-04-28 23:57:03 +00:00
Timo Tijhof a4bbe98cd3 bin: Enable 'set -e' and 'set -u' in bash scripts
* set -e: Abort on error.
* set -u: Emit error for undefined variables.

There was one case of unconditional access of a possibly
undefined variable in listRecentCommits.sh. Fixed by replacing
the old "x$x"="x" hack with an explicit emptiness check. The hack
is needed when supporting ancient non-bash shells, but this script
explicitly invokes a bash environment which 'test -z'.

Change-Id: I41a1c0d1bd57b5e241b83224096d32876fd913af
2015-04-29 00:48:24 +01:00
Timo Tijhof 1082249691 build: Move pre/post 'doc' task into package.json
Standard entry point.

Change-Id: Ic6cdc9ac1b266a64dcb1522ac36132c5ef844d3c
2015-04-06 17:18:29 +01:00
Timo Tijhof 5813d53271 Update JSDuck config to standard jsduck.json
Also
* This way we don't need to pass the --config=jsduck.config.json
  parameter but can run plain 'jsduck' in Jenkins. Allowing it
  to use the standard job template for testing.

* Move processes=0 to jsduck.json.
  Workaround for https://github.com/senchalabs/jsduck/issues/525

* Use standard ' - Documentation' suffix, which makes the first
  part of the title render in bold (similar to how we do in OOjs
  and OOjs UI already).

Change-Id: I6c9c7a1f29df0a72dc8cd0d37a83aaef23068062
2015-03-05 23:51:53 +01:00
James D. Forrester 967d69c930 Provide a script to automatically list recent commits for pre-deployment review
Change-Id: I248ff783e5686d1646fb0814651d8f48d906230f
2014-06-12 12:29:18 -07:00
Timo Tijhof d6478ec548 generateDocs.sh: Simplify
* Make more like mediawiki-core's mwjsduckgen.
  - Use bash set -e to have the script abort early when any
    part of it fails (especially the jsduck command).
  - Since it will abort early, we don't need the 'test' for the
    symlink. If jsduck succeeded, it will have re-created the
    docs directory and thus not have the symlink yet.
  - Don't "cd" into anything from the script, simply use absolute
    paths instead. Both jsduck and ln support this.

Change-Id: I03c02d590e0f696c78da87ff638bb407e48a7cd7
2014-05-03 21:16:24 +02:00
Timo Tijhof f42cf1f924 docs: Remove JSDuck 4 support
And migrate deprecated "-no_doc" option.

Change-Id: I2e1e89408328c614a89f6c4e408df90d1e346d76
2014-04-29 20:20:49 +02:00
James D. Forrester 09f6daab23 Remove "msgs" files for i18n batch processing
No longer needed, and have been throwing up confusing i18n string search hits.

Change-Id: I17d3850ff4f17c1c92735dcf3deb9a33fe5d6de2
2014-02-27 01:21:03 +00:00
James D. Forrester 0390da9dbc Remove SyntaxHighlight code
Unused. Will move instead to the SyntaxHighlight extension.

Change-Id: If4d786b55aca45a517c098f3282ba553da0ceb9c
2014-02-20 11:59:37 -08:00
James D. Forrester 87dd841150 Add placeholder for gallery editor
Change-Id: Id351cea8614282924eb9b1644693f7cd71fd9fa4
2014-02-03 14:05:49 -08:00
Roan Kattouw 74242c790a Add updateSubmodule.sh script
Generates a commit that updates the VE core submodule to
master (or a specified version)

Change-Id: I54c5fa18e9f9d7bb65a490415c5c139fd6072925
2014-02-01 19:03:55 -08:00
Timo Tijhof 1944b0c6f0 jsduck: Fix script loading issues with eg-iframe in production
It works locally because it can just nagivate to ../lib/ve.

In production however we need docs/ to be standalone so that we
can publish it without needing a subdirectory at:
https://docs.wikimedia.org/VisualEditor/master/.

For local usage this will be a symlink that still points to
the sibling directory (but using a symlink instead of a ../ path).
In production we can then instruct jenkins to replace that symlink
with an actual copy of lib/. As long as the generated path
references in the HTML remain the same.

Follows-up 88c4888872, which broke the publication of the docs in
Jenkins as it changed references from modules/ to ../modules/ for
the eg-iframe. This works locally, but broke in Jenkins as it was relying
on the copying of modules/ to docs/modules/ being enough to make it work).

Change-Id: I10eaa5424d172932b29774a0f03d511d555fd121
2014-01-16 20:41:20 +00:00
James D. Forrester 842688c51b Ultra-basic gallery editing
'Cos Erik doesn't like things he can't edit.

Change-Id: I1d9fb1215bb16b1245eddd87c977fb5bfdee4da9
2014-01-15 15:13:12 -08:00
Roan Kattouw c41b60021d Move libraries to the lib/ directory
Didn't move unicodejs because it doesn't have its own repo
and is currently mastered in this repo

Change-Id: I14ab4bd641077d993ac235d8bcdcf8e50a1a72a7
2013-12-19 23:02:52 +01:00
Roan Kattouw 88c4888872 Replace makeStaticLoader with a grunt task
'grunt build' builds modules/ve/test/index.php, demos/ve/index.php
and .docs/eg-iframe.html from the associated *.template files.

Got rid of the JS-based SVG/PNG switching logic. Instead, we now
just use SVG unconditionally. We'd already dropped browser support
for browsers that don't support SVG anyway.

Change-Id: Iba2e68f17904687cb13e793a410e095f28f1b13c
2013-12-17 22:03:01 +01:00
Roan Kattouw b61813b935 Move visualeditor-languages-tool message from ve to ve-mw
I intially thought it was associated with the language inspector, but
it's not, it's the label for the languages pane in the meta dialog.

Change-Id: I478e3951862a25eee056e3df6cc3c9f9f7d9d935
2013-12-17 20:56:13 +00:00
Roan Kattouw fe2ab4a203 Alphabetize msgs-ve
Change-Id: I79294c8b3a80d25eeeb03a84bc04b3d670ce6a14
2013-12-17 20:56:07 +00:00
Roan Kattouw c3ea309a78 Move language inspector messages to VE core
They conceptually belong in VE-MW, but right now the language
inspector is used in the VE standalone, and not having the
messages breaks it.

Change-Id: I0f84c6ee6c6142581c895515a2bd2a6caf4e511d
2013-12-13 13:23:58 -08:00
Roan Kattouw c5d815ffa4 Fix buildi18n-json.sh to be consistent with TWN's build scripts
Use spaces instead of tabs, and don't put a newline at the end
of the file.

Change-Id: Ice8dcec18acd9370e6885dd863a920ad779e0248
2013-12-13 13:01:15 -08:00
Roan Kattouw 789d187ce5 Add JSON->PHP conversion script for i18n
Apparently the .i18n.php shim is causing problems in both production
and beta labs, so for now we'll just generate the .i18n.php file
from the JSON files.

The first half of the conversion script is identical to the shim.

Change-Id: Id606584197d7efcff6fff29ea22cd35dd744b55e
2013-12-12 13:48:05 -08:00
Roan Kattouw 2fa725599c Add missing specialcharacters messages to JSON blobs
These were accidentally dropped when I rebased my commit
that imported all i18n messages into the JSON files.

Change-Id: I2f5611f3dbe1a31134426184a9d5648ffc751947
2013-12-09 13:19:17 -08:00
Roan Kattouw f462ea5bb0 Convert all i18n to JSON blobs
Split the i18n messages into four groups:
* oojs-ui (moved to the oojs-ui repo in a separate commit)
* VE core
* VE-MW (MediaWiki-specific things)
* VE-WMF (Wikimedia-specific things)

The VE-WMF group is new, and we'll split WMF-specific code out into
it later, for now it's just messages associated with that code.

Each language has its own JSON file at modules/MODULE/i18n/LANG.json

Kept messages in VisualEditor.i18n.php as the master copy, because
TranslateWiki can't deal with the JSON files just yet. Added a script
to rebuild the JSON files from the PHP file.

Change-Id: I94e084b2f10994f41324fd08a05ff7f8391ea2eb
2013-12-09 10:52:01 -08:00
Timo Tijhof c42840541e Add bin/ directory with updateStaticLoaders and generateDocs
Adding a symlink in .docs/generate.sh because of Jenkins and
possibly other uses.

Change-Id: Ieb56852d0d0b978fbc1cbb873204d9e457cf969c
2013-10-22 23:51:51 +02:00