Browse Source

Always export to Docs/command_ref folder

master
Christopher 8 years ago
parent
commit
69aa972842
  1. 12
      Assets/Fungus/Scripts/Editor/BlockEditor.cs

12
Assets/Fungus/Scripts/Editor/BlockEditor.cs

@ -497,11 +497,7 @@ namespace Fungus.EditorUtils
[MenuItem("Tools/Fungus/Utilities/Export Reference Docs")] [MenuItem("Tools/Fungus/Utilities/Export Reference Docs")]
protected static void ExportReferenceDocs() protected static void ExportReferenceDocs()
{ {
string path = EditorUtility.SaveFolderPanel("Export Reference Docs", "", ""); const string path = "./Docs";
if(path.Length == 0)
{
return;
}
ExportCommandInfo(path); ExportCommandInfo(path);
ExportEventHandlerInfo(path); ExportEventHandlerInfo(path);
@ -541,7 +537,8 @@ namespace Fungus.EditorUtils
info.Category == "" && category == "Scripting") info.Category == "" && category == "Scripting")
{ {
markdown += "## " + info.CommandName + "\n"; markdown += "## " + info.CommandName + "\n";
markdown += info.HelpText + "\n"; markdown += info.HelpText + "\n\n";
markdown += "Defined in " + keyPair.Key.FullName + "\n";
markdown += GetPropertyInfo(keyPair.Key); markdown += GetPropertyInfo(keyPair.Key);
} }
} }
@ -584,7 +581,8 @@ namespace Fungus.EditorUtils
info.Category == "" && category == "Core") info.Category == "" && category == "Core")
{ {
markdown += "## " + info.EventHandlerName + "\n"; markdown += "## " + info.EventHandlerName + "\n";
markdown += info.HelpText + "\n"; markdown += info.HelpText + "\n\n";
markdown += "Defined in " + type.FullName + "\n";
markdown += GetPropertyInfo(type); markdown += GetPropertyInfo(type);
} }
} }

Loading…
Cancel
Save