API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Extension...

To also discover test modules, add @code $settings['extension_discovery_scan_tests'] = TRUE; @encode to your settings.php.

The @code and @endcode shouldn't be shown on the api.d.org page.

Comments

joachim created an issue. See original summary.

pushpinderchauhan’s picture

Status: Active » Needs review
StatusFileSize
new480 bytes

Corrected. Please review.

Status: Needs review » Needs work

The last submitted patch, 2: D8-@code-tag-2721921-2.patch, failed testing.

pashupathi nath gajawada’s picture

Assigned: Unassigned » pashupathi nath gajawada
Status: Needs work » Needs review
StatusFileSize
new537 bytes

@joachim,

As suggested I have removed the @code and @endcode.
Please find the patch.

Status: Needs review » Needs work

The last submitted patch, 4: @code_tag_showing_on_docs-2721921-4.patch, failed testing.

shashikant_chauhan’s picture

Status: Needs work » Needs review
StatusFileSize
new480 bytes

For me patch #2 looks correct.
Adding patch again and retest.

joachim’s picture

Yup, patch #2 is the right fix.

@Pashupathi Nath G the problem isn't that the code tag is in the docs source, the problem is that it's appearing on output as a literal tag, rather than producing code formatting.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 5a1a66f and pushed to 8.1.x and 8.2.x. Thanks!

  • alexpott committed 85fa317 on 8.2.x
    Issue #2721921 by er.pushpinderrana, Pashupathi Nath G,...

  • alexpott committed 5a1a66f on 8.1.x
    Issue #2721921 by er.pushpinderrana, Pashupathi Nath G,...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.