Closed Bug 1613313 Opened 5 years ago Closed 5 years ago

Network monitor is not included in the index.md file

Categories

(DevTools :: Documentation, defect, P3)

defect

Tracking

(firefox75 fixed)

RESOLVED FIXED
Firefox 75
Tracking Status
firefox75 --- fixed

People

(Reporter: Honza, Assigned: Honza)

References

Details

Attachments

(1 file, 1 obsolete file)

Assignee: nobody → odvarko
Status: NEW → ASSIGNED

Sylvestre, I'd like to fix our docs and make sure that the Network monitor *.md file appears on this page:
https://firefox-source-docs.mozilla.org/devtools/index.html
How can I test this site locally?

Honza

Flags: needinfo?(sledru)

you can see the results with
./mach doc

or you can push to try with doc generate/upload and see the results on:
http://gecko-docs.mozilla.org-l1.s3.us-west-2.amazonaws.com/index.html

don't hesitate if you need anything else

Flags: needinfo?(sledru)

I am getting an error when running mach doc

# Sphinx version: 2.2.2
# Python version: 3.6.5 (CPython)
# Docutils version: 0.15.2 release
# Jinja2 version: 2.10.3
# Last messages:

# Loaded extensions:
Traceback (most recent call last):
  File "c:\src\mozilla.org\mozilla-central\obj-x86_64-pc-mingw32\_virtualenvs\moztreedocs-OSceHKx-\Lib\site-packages\sphinx\cmd\build.py", line 275, in build_main
    args.tags, args.verbosity, args.jobs, args.keep_going)
  File "c:\src\mozilla.org\mozilla-central\obj-x86_64-pc-mingw32\_virtualenvs\moztreedocs-OSceHKx-\Lib\site-packages\sphinx\application.py", line 243, in __init__
    self.setup_extension(extension)
  File "c:\src\mozilla.org\mozilla-central\obj-x86_64-pc-mingw32\_virtualenvs\moztreedocs-OSceHKx-\Lib\site-packages\sphinx\application.py", line 402, in setup_extension
    self.registry.load_extension(self, extname)
  File "c:\src\mozilla.org\mozilla-central\obj-x86_64-pc-mingw32\_virtualenvs\moztreedocs-OSceHKx-\Lib\site-packages\sphinx\registry.py", line 487, in load_extension
    metadata = setup(app)
  File "c:\src\mozilla.org\mozilla-central\python/mozbuild\mozbuild\sphinx.py", line 183, in setup
    manager.generate_docs(app)
  File "c:\src\mozilla.org\mozilla-central\tools\moztreedocs\__init__.py", line 96, in generate_docs
    self._synchronize_docs()
  File "c:\src\mozilla.org\mozilla-central\tools\moztreedocs\__init__.py", line 164, in _synchronize_docs
    self._process_markdown(m, source_path, os.path.join(".", target))
  File "c:\src\mozilla.org\mozilla-central\tools\moztreedocs\__init__.py", line 127, in _process_markdown
    post = frontmatter.load(f)
  File "c:\src\mozilla.org\mozilla-central\obj-x86_64-pc-mingw32\_virtualenvs\moztreedocs-OSceHKx-\Lib\site-packages\frontmatter\__init__.py", line 107, in load
    text = fd.read()
  File "c:\mozilla-build\python3\lib\encodings\cp1250.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x88 in position 189: character maps to <undefined>

Output:

Encoding error:
'charmap' codec can't decode byte 0x88 in position 189: character maps to <undefined>
./mach: failed to generate documentation:
c:\src\mozilla.org\mozilla-central: sphinx return code 2

What's wrong?

Flags: needinfo?(sledru)

Sorry for the latency, I am on pto. I don't know much about mac doc on Windows. Sorry :(

Flags: needinfo?(sledru)

The issue described in the previous comment solved in bug 1615223, thanks!
Honza

Attachment #9127118 - Attachment is obsolete: true
Pushed by jodvarko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/81a217cfda22 Network monitor is not included in the index.md file r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75

Sylvestre, the patch didn't fix the original problem.

Here is a quick link to the doc
https://firefox-source-docs.mozilla.org/devtools/index.html#tool-architectures

The Network panel isn't in the TOC.

Note that it didn't work for me on my Win10 machine but, it worked when building the docs on Mac.

Do you know what the problem is or who could help?

Thanks!

Honza

Flags: needinfo?(sledru)

First, sorry about the latency.
I am not very familiar with the md/rst integration.

A few options:

  • add devtools/client/netmonitor/ to the index of docs
  • move devtools/client/netmonitor/doc/architecture.md with the rest of the doc
  • workaround the build doc process to add a symlink (ugly...)
  • debug https://github.com/readthedocs/recommonmark/ to see what is happening. if there is a voodoo workaround available
    (probably other)
Flags: needinfo?(sledru)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: