Project

General

Profile

Actions

Task #2938

closed

XHP editor

Added by Florian Effenberger over 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
Team - Q1/2020
Start date:
Due date:
% Done:

0%


Description

As discussed during the in-person meeting in Munich:


Related issues

Related to Documentation - Task #2394: master ticket for new documentation approachIn ProgressOlivier Hallot

Actions
Actions #1

Updated by Florian Effenberger over 4 years ago

  • Related to Task #2394: master ticket for new documentation approach added
Actions #3

Updated by Olivier Hallot over 4 years ago

Move editor to php (3) (WIP)

add a config file
remove cruft in XSLT

Change-Id: I820895cf646844235192cbf7eb0e739716142039
Reviewed-on: https://gerrit.libreoffice.org/84262

Move editor to php (4) (WIP)

Fix image position
Improve rendered CSS

Change-Id: I82c756c201b5b24ec3cc2c7de84fe62b11e6904b
Reviewed-on: https://gerrit.libreoffice.org/84265

Actions #4

Updated by Olivier Hallot over 4 years ago

Move editor to php (5) (WIP)

remove cruft from javascript

Change-Id: Iabb1b9518d90b68eebececb36c7ab431adbbf0e6
Reviewed-on: https://gerrit.libreoffice.org/84469
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>

XHP editor: open local file and render

Change-Id: Ia6e1358064281e03d326f6398fb101a71637450e
Reviewed-on: https://gerrit.libreoffice.org/84541
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>

Actions #5

Updated by Olivier Hallot over 4 years ago

Next step:
- Upload current status in NewDesign
- Save XHP locally

Actions #6

Updated by Olivier Hallot over 4 years ago

Code is uploaded:

https://newdesign.libreoffice.org/xhpeditor/index.php

Should open the editor.

Actions #7

Updated by Mike Saunders over 4 years ago

https://newdesign.libreoffice.org/xhpeditor/index.php

Thanks Olivier -- I can confirm that it works in Chome, Firefox and Safari. It looks like it's already in a good state for XHP editors to use; what do you plan to implement next (eg the "Generate patch") button? As mentioned, I can look into some cosmetic improvements, or we can let the community try that...

Actions #8

Updated by Olivier Hallot over 4 years ago

To test the rendering, please clone the Help repo with 'git clone https://gerrit.libreoffice.org/help helpcontent2' and you will have the folder helpcontent2 in your computer. Then click on Open File in the Editor and choose any file in helpcontent2/source/text/ in your computer. After loading, click Render to see the file on the left.

to refresh memory, the editor code is in dev-tools/ repo. To clone in your local machine and hack, use 'git clone https://gerrit.libreoffice.org/dev-tools dev-tools' and the editor is under help3/

If you have a local web server, you can configure it to open dev-tools/help3/xhpeditor/index.php and set the config.php file for the right folder locations.

Interesting tasks to follow.
Housekeeping: separate editor CSS from rendering CSS. The last is in xhpeditor.css. Note: the left and right sides of the screen is id="rightside" and id="leftside" div's.

Actions #9

Updated by Olivier Hallot over 4 years ago

Progress report

Author: Olivier Hallot <>
Date: Sat Dec 7 19:14:20 2019 -0300

Fixes in the editor XSLT
Change-Id: I0d553d506343c6134f95f9502e64e3c14c17b2ea
Reviewed-on: https://gerrit.libreoffice.org/84700

Author: Olivier Hallot <>
Date: Sat Dec 7 19:15:56 2019 -0300

Fix snippets.js
Change-Id: I62a4a813e91a7f1cdeb1f4c13f177feff0daaa57
Reviewed-on: https://gerrit.libreoffice.org/84701

Author: Olivier Hallot <>
Date: Sat Dec 7 22:30:46 2019 -0300

Add MAC code snippets
Change-Id: Iea9a6d185beaacb8590d7c8f79760c49fcf4c4da
Reviewed-on: https://gerrit.libreoffice.org/84703

Author: Olivier Hallot <>
Date: Sat Dec 7 22:33:02 2019 -0300

Add Save command in XHP editor
Change-Id: Idee319110ca2613dc33dcd220fc50b9f91923906
Reviewed-on: https://gerrit.libreoffice.org/84704
Actions #10

Updated by Olivier Hallot over 4 years ago

Author: Olivier Hallot <>
Date: Mon Dec 9 11:42:37 2019 -0300

XHP Editor: add 'system' switches
  • Add buttons to select computer system on rendered page
  • Mute links to prevent clicking on href's
  • cleanup on scripts
Change-Id: I90de6a2ce84b59df9764f0bdd123579177ff7016
Reviewed-on: https://gerrit.libreoffice.org/84757

Author: Olivier Hallot <>
Date: Mon Dec 9 13:16:06 2019 -0300

Add appl switch selector
Change-Id: Ie412a4b391a444b1f68e750fd657c0a817e836f2
Reviewed-on: https://gerrit.libreoffice.org/84769

Author: Olivier Hallot <>
Date: Mon Dec 9 18:20:19 2019 -0300

handle rendered images style
Change-Id: If854b8a2c8d0cf7f7c3e8bf15aaf5899dfd9c85d
Reviewed-on: https://gerrit.libreoffice.org/84790

Author: Olivier Hallot <>
Date: Tue Dec 10 10:37:49 2019 -0300

xhpeditor: remove references to online/offline help
Change-Id: I8051258b12d1deafce87cd3b00f68ed801830702
Reviewed-on: https://gerrit.libreoffice.org/84848
Actions #11

Updated by Olivier Hallot over 4 years ago

Author: Olivier Hallot <>
Date: Tue Dec 17 08:27:19 2019 -0300

xhpeditor: implement check XHP and refactor
  • changed switch selector to radio
  • offload index.php of chuncks of HTML
  • Implement check DTD (after stackoverflow)
  • added companion snippets.php for aux functions
Change-Id: I54bd08f1316227d1b3f1e597cb9a043ca5f4e9c5
Reviewed-on: https://gerrit.libreoffice.org/85291
Actions #12

Updated by Olivier Hallot over 4 years ago

xhpeditor: Add duplicate ID check for XHP

Add check of duplicated id for
- paragraph,
- headings ('-6)
-and notes, tips, warning

Change-Id: I10049bda08f03cc940d1678253fbee8f80996d11
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/86221
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>


xhpeditor: fixes and improvements

- close bracket at right place
- improve icontable snippet
- add image paragraph
- better switch layout
- better switchinline layout

Change-Id: Ib1f57d0ba35937a5b81427d180d0c5a53769ecaa
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/86228
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>


Add XML formation check

Change-Id: I14d87d2e348a795286bd08d36015bac38c88a9ba
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/86242
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>

Actions #13

Updated by Olivier Hallot over 4 years ago

xhpeditor: several refactor

- place codemirror config in proper javascript file
- refactor snippets buttons
- add codemirror niceties (WIP)

Change-Id: I6b0afd1a120026e5952823d370d5f7827b3c6fe5
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/86271
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>

Actions #14

Updated by Olivier Hallot over 4 years ago

Wiki page on the XHP Help editor, with instructions and tips to use:

https://wiki.documentfoundation.org/DocumentationHelpEditor

Actions #15

Updated by Olivier Hallot over 4 years ago

Fix header in rendered page

Allow to keep the appl and sys selectors visible when scrolling
the rendered page.

Change-Id: I5579523b73f6bd734bcae2854e788ad760abb954
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/86628
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>

xhpeditor: Add dropdown menu

- Add css-only dropdown menu from W3C
- Add Help for XHP ref and editor commands
- Fix header divs on top to display when scrollng
- Refactor large chunks of page elemets display

Change-Id: Ie173c492a72b9f49200303d99b30544bdfc0d53e
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/86636
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>

Actions #16

Updated by Olivier Hallot about 4 years ago

Fix autocomplete and add codemirror niceties

- Fix autocomplete
- add search feature
- Add closetags
- add jumptoline ...

Change-Id: I4c59dc05484ba60522235509586d2a187eeb4d37
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/87103
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>

Actions #17

Updated by Olivier Hallot about 4 years ago

xhpeditor Add fullscreen, fix autocomplete for Brave

Change-Id: I8247696e99da7d6398c4ec80f9cbfa3257d30da4
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/87159
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>

xhpeditor: Fix generic image rendering

Change-Id: I0dbdab15d07bf0ef097c0713d2f1e8f3ade3954b
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/87203
Reviewed-by: Olivier Hallot <>

xhpeditor: rework CSS grid (WIP)

Change-Id: I9656a051b0fbbdcfbdcf70266cce476533da2e94
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/87205
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>

Actions #18

Updated by Olivier Hallot about 4 years ago

xhpeditor: More tweaks in page layout

Change-Id: Ia3e9e8f7ab2da99a9dd812cdceda8f66f1112c9d
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/87314
Reviewed-by: Olivier Hallot <>
Tested-by: Olivier Hallot <>

Actions #19

Updated by Olivier Hallot about 4 years ago

xhpeditor: refactor to make CM as component

Move codemirror to a folder to ease maintenance/update

Change-Id: Id1ec9451cc49bd305f53406dcfff8978bd639016
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/88472
Tested-by: Olivier Hallot <>
Reviewed-by: Olivier Hallot <>

xhpeditor: improve rendering in small screen

This is work in progress

Change-Id: I8610e810b65593c15cb5da42c470e17c6afc0532
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/88479
Tested-by: Olivier Hallot <>
Reviewed-by: Olivier Hallot <>

xhpeditor: display filename in render area

Change-Id: Ic34a555cb4332017d4ebbf42f6ad1a3387f58775
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/88480
Tested-by: Olivier Hallot <>
Reviewed-by: Olivier Hallot <>

xhpeditor: adjust display for small screens

Block stacks when display size is smaller than 800px

Change-Id: Iad66b3f1e7215c07490d01fe69eb3a4884db8f58
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/88482
Tested-by: Olivier Hallot <>
Reviewed-by: Olivier Hallot <>

Remove new line after paragraphs

Change-Id: I7cab61c03d83919a4681b0f63d6b7207b97393f3
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/88896
Tested-by: Olivier Hallot <>
Reviewed-by: Olivier Hallot <>

Add help page link for Editor in Help menu

Change-Id: Iffa4b084935fd5899244da40ecd07afb812d3986
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/88935
Tested-by: Olivier Hallot <>
Reviewed-by: Olivier Hallot <>

Actions #20

Updated by Florian Effenberger about 4 years ago

  • Target version changed from Q4/2019 to Q1/2020

Olivier to update the ticket to reflect the status quo

Actions #21

Updated by Olivier Hallot about 4 years ago

Editor is in working condition and usable

https://newdesign.libreoffice.org/xhpeditor/index.php

Actions #22

Updated by Mike Saunders about 4 years ago

Should we announce it on the blog?

Actions #23

Updated by Florian Effenberger about 4 years ago

Olivier, ping?

Actions #25

Updated by Florian Effenberger over 3 years ago

The editor was announced in FOSDEM 2020.

Can this ticket be closed then, anything left todo?

Actions #26

Updated by Olivier Hallot over 3 years ago

Software development is a never ending improvement game.

I recomend that the continuation and improvements of the editor moves to the reach of a scholarship or summer of code program.

I can act as advisor or mentor, rather than a developer.

-> close.

Actions #27

Updated by Olivier Hallot about 3 years ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF