зеркало из https://github.com/Azure/autorest.az.git
Disable History.rst overriding (#877)
* Disable History.rst overriding * add protection for history.rst and yaml file
This commit is contained in:
Родитель
2352cafca8
Коммит
130ea45553
|
@ -30,9 +30,15 @@ export async function processRequest(host: Host) {
|
|||
PathConstants.recordingFolder,
|
||||
),
|
||||
);
|
||||
session.protectFiles(
|
||||
path.join(configHandler.azOutputFolder, PathConstants.historyRstFile),
|
||||
);
|
||||
session.protectFiles(
|
||||
path.join(configHandler.azOutputFolder, PathConstants.readmeFile),
|
||||
);
|
||||
session.protectFiles(
|
||||
path.join(configHandler.azOutputFolder, PathConstants.linterExclusionsFile),
|
||||
);
|
||||
} while (model.SelectNextExtension());
|
||||
}
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ export class AzExtensionFullGenerator extends GeneratorBase {
|
|||
await this.generateFullSingleAndAddtoOutput(new CliTopHelp(this.model));
|
||||
await this.generateFullSingleAndAddtoOutput(new CliTopMetadata(this.model));
|
||||
await this.generateFullSingleAndAddtoOutput(new CliReport(this.model));
|
||||
await this.generateFullSingleAndAddtoOutput(new CliExtHistory(this.model));
|
||||
await this.generateFullSingleAndAddtoOutput(new CliExtHistory(this.model), false);
|
||||
await this.generateFullSingleAndAddtoOutput(new CliExtReadme(this.model), false);
|
||||
await this.generateFullSingleAndAddtoOutput(new CliExtSetupCfg(this.model));
|
||||
await this.generateFullSingleAndAddtoOutput(new CliExtSetupPy(this.model));
|
||||
|
|
|
@ -75,6 +75,7 @@ export class PathConstants {
|
|||
public static readonly setupPyFile: string = 'setup.py';
|
||||
public static readonly setupCfgFile: string = 'setup.cfg';
|
||||
public static readonly historyRstFile: string = 'HISTORY.rst';
|
||||
public static readonly linterExclusionsFile: string = 'linter_exclusions.yml';
|
||||
public static readonly docSourceJsonFile: string = path.join(
|
||||
'/doc/sphinx/azhelpgen/doc_source_map.json',
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче