Skip to content

Commit df3bb09

Browse files
committed
Change overview generation script
1 parent 7c6bf8c commit df3bb09

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

eng/pipelines/scripts/generate_overview_from_readme.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ def generate_overview(readme_file, version, overview_file_path):
4646

4747
# Before passing the README contents to markdown2 clean out the codesnippet tags on the java code fences.
4848
# Clean ```java com.azure.core.aCodeSnippetTag to ```java, without doing this markdown2 won't properly process
49-
# the contents of the code fence.
49+
# the contents of the code fence. Replace '&' with '&' to avoid issues with the HTML parser.
5050
cleaned_readme_content_lines = []
5151
for line in raw_readme_content_lines:
5252
cleaned_readme_content_lines.append(re.sub(pattern="``` *java +[a-zA-Z0-9.#\-_]*", repl="```java", string=line, flags=re.UNICODE))
5353

5454
readme_content = ''.join(cleaned_readme_content_lines)
55+
readme_content = re.sub(pattern='\\B&\\B', repl='&', string=readme_content, flags=re.UNICODE)
5556

5657
# markdown2.markdown will create html from the readme.md file. The fenced-code-blocks
5758
# extras being passed into the markdown call is necessary to deal with the embedded

eng/pipelines/templates/stages/archetype-sdk-client-patch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ extends:
124124
inputs:
125125
mavenPomFile: ClientFromSourcePom.xml
126126
goals: 'deploy'
127-
options: '$(DefaultOptions) -T ${{parameters.BuildParallelization}} -DskipTests -Dgenerate-overview -DXdoclint:none -Dconfiguration=-Xdoclint:none -Dspotbugs.skip=true -Dcheckstyle.skip=true -Drevapi.skip=true -Dspotless.apply.skip=true -pl $(ProjectList) -am -DaltDeploymentRepository=id::default::file://$(System.DefaultWorkingDirectory)/build' # We include template-module, so we ensure it always builds in CI.
127+
options: '$(DefaultOptions) -T ${{parameters.BuildParallelization}} -DskipTests -Dgenerate-overview -Dspotbugs.skip=true -Dcheckstyle.skip=true -Drevapi.skip=true -Dspotless.apply.skip=true -pl $(ProjectList) -am -DaltDeploymentRepository=id::default::file://$(System.DefaultWorkingDirectory)/build' # We include template-module, so we ensure it always builds in CI.
128128
mavenOptions: '$(MemoryOptions) $(LoggingOptions)'
129129
javaHomeOption: 'JDKVersion'
130130
jdkVersionOption: ${{ parameters.JavaBuildVersion }}

0 commit comments

Comments
 (0)