From e01dc2d3eca1cec4a453f60c04023221dad985af Mon Sep 17 00:00:00 2001 From: Alan Lu Date: Thu, 8 Feb 2018 13:50:06 +0100 Subject: [PATCH] Tweak doc paths to match doxity behavior --- docs/docs/{Campaign.md => Campaign/index.md} | 0 docs/docs/{CampaignFactory.md => CampaignFactory/index.md} | 0 docs/docs/{CategoricalEvent.md => CategoricalEvent/index.md} | 0 docs/docs/{CentralizedOracle.md => CentralizedOracle/index.md} | 0 .../index.md} | 0 docs/docs/{DifficultyOracle.md => DifficultyOracle/index.md} | 0 .../index.md} | 0 docs/docs/{EtherToken.md => EtherToken/index.md} | 0 docs/docs/{Event.md => Event/index.md} | 0 docs/docs/{EventFactory.md => EventFactory/index.md} | 0 docs/docs/{FutarchyOracle.md => FutarchyOracle/index.md} | 0 .../index.md} | 0 .../{HumanFriendlyToken.md => HumanFriendlyToken/index.md} | 0 docs/docs/{LMSRMarketMaker.md => LMSRMarketMaker/index.md} | 0 docs/docs/{MajorityOracle.md => MajorityOracle/index.md} | 0 .../index.md} | 0 docs/docs/{Market.md => Market/index.md} | 0 docs/docs/{MarketMaker.md => MarketMaker/index.md} | 0 docs/docs/{Math.md => Math/index.md} | 0 docs/docs/{Oracle.md => Oracle/index.md} | 0 docs/docs/{OutcomeToken.md => OutcomeToken/index.md} | 0 docs/docs/{ScalarEvent.md => ScalarEvent/index.md} | 0 .../{SignedMessageOracle.md => SignedMessageOracle/index.md} | 0 .../index.md} | 0 docs/docs/{StandardMarket.md => StandardMarket/index.md} | 0 .../index.md} | 0 .../index.md} | 0 .../index.md} | 0 docs/docs/{StandardToken.md => StandardToken/index.md} | 0 docs/docs/{Token.md => Token/index.md} | 0 docs/docs/{UltimateOracle.md => UltimateOracle/index.md} | 0 .../index.md} | 0 scripts/makedocs.sh | 3 +-- 33 files changed, 1 insertion(+), 2 deletions(-) rename docs/docs/{Campaign.md => Campaign/index.md} (100%) rename docs/docs/{CampaignFactory.md => CampaignFactory/index.md} (100%) rename docs/docs/{CategoricalEvent.md => CategoricalEvent/index.md} (100%) rename docs/docs/{CentralizedOracle.md => CentralizedOracle/index.md} (100%) rename docs/docs/{CentralizedOracleFactory.md => CentralizedOracleFactory/index.md} (100%) rename docs/docs/{DifficultyOracle.md => DifficultyOracle/index.md} (100%) rename docs/docs/{DifficultyOracleFactory.md => DifficultyOracleFactory/index.md} (100%) rename docs/docs/{EtherToken.md => EtherToken/index.md} (100%) rename docs/docs/{Event.md => Event/index.md} (100%) rename docs/docs/{EventFactory.md => EventFactory/index.md} (100%) rename docs/docs/{FutarchyOracle.md => FutarchyOracle/index.md} (100%) rename docs/docs/{FutarchyOracleFactory.md => FutarchyOracleFactory/index.md} (100%) rename docs/docs/{HumanFriendlyToken.md => HumanFriendlyToken/index.md} (100%) rename docs/docs/{LMSRMarketMaker.md => LMSRMarketMaker/index.md} (100%) rename docs/docs/{MajorityOracle.md => MajorityOracle/index.md} (100%) rename docs/docs/{MajorityOracleFactory.md => MajorityOracleFactory/index.md} (100%) rename docs/docs/{Market.md => Market/index.md} (100%) rename docs/docs/{MarketMaker.md => MarketMaker/index.md} (100%) rename docs/docs/{Math.md => Math/index.md} (100%) rename docs/docs/{Oracle.md => Oracle/index.md} (100%) rename docs/docs/{OutcomeToken.md => OutcomeToken/index.md} (100%) rename docs/docs/{ScalarEvent.md => ScalarEvent/index.md} (100%) rename docs/docs/{SignedMessageOracle.md => SignedMessageOracle/index.md} (100%) rename docs/docs/{SignedMessageOracleFactory.md => SignedMessageOracleFactory/index.md} (100%) rename docs/docs/{StandardMarket.md => StandardMarket/index.md} (100%) rename docs/docs/{StandardMarketFactory.md => StandardMarketFactory/index.md} (100%) rename docs/docs/{StandardMarketWithPriceLogger.md => StandardMarketWithPriceLogger/index.md} (100%) rename docs/docs/{StandardMarketWithPriceLoggerFactory.md => StandardMarketWithPriceLoggerFactory/index.md} (100%) rename docs/docs/{StandardToken.md => StandardToken/index.md} (100%) rename docs/docs/{Token.md => Token/index.md} (100%) rename docs/docs/{UltimateOracle.md => UltimateOracle/index.md} (100%) rename docs/docs/{UltimateOracleFactory.md => UltimateOracleFactory/index.md} (100%) diff --git a/docs/docs/Campaign.md b/docs/docs/Campaign/index.md similarity index 100% rename from docs/docs/Campaign.md rename to docs/docs/Campaign/index.md diff --git a/docs/docs/CampaignFactory.md b/docs/docs/CampaignFactory/index.md similarity index 100% rename from docs/docs/CampaignFactory.md rename to docs/docs/CampaignFactory/index.md diff --git a/docs/docs/CategoricalEvent.md b/docs/docs/CategoricalEvent/index.md similarity index 100% rename from docs/docs/CategoricalEvent.md rename to docs/docs/CategoricalEvent/index.md diff --git a/docs/docs/CentralizedOracle.md b/docs/docs/CentralizedOracle/index.md similarity index 100% rename from docs/docs/CentralizedOracle.md rename to docs/docs/CentralizedOracle/index.md diff --git a/docs/docs/CentralizedOracleFactory.md b/docs/docs/CentralizedOracleFactory/index.md similarity index 100% rename from docs/docs/CentralizedOracleFactory.md rename to docs/docs/CentralizedOracleFactory/index.md diff --git a/docs/docs/DifficultyOracle.md b/docs/docs/DifficultyOracle/index.md similarity index 100% rename from docs/docs/DifficultyOracle.md rename to docs/docs/DifficultyOracle/index.md diff --git a/docs/docs/DifficultyOracleFactory.md b/docs/docs/DifficultyOracleFactory/index.md similarity index 100% rename from docs/docs/DifficultyOracleFactory.md rename to docs/docs/DifficultyOracleFactory/index.md diff --git a/docs/docs/EtherToken.md b/docs/docs/EtherToken/index.md similarity index 100% rename from docs/docs/EtherToken.md rename to docs/docs/EtherToken/index.md diff --git a/docs/docs/Event.md b/docs/docs/Event/index.md similarity index 100% rename from docs/docs/Event.md rename to docs/docs/Event/index.md diff --git a/docs/docs/EventFactory.md b/docs/docs/EventFactory/index.md similarity index 100% rename from docs/docs/EventFactory.md rename to docs/docs/EventFactory/index.md diff --git a/docs/docs/FutarchyOracle.md b/docs/docs/FutarchyOracle/index.md similarity index 100% rename from docs/docs/FutarchyOracle.md rename to docs/docs/FutarchyOracle/index.md diff --git a/docs/docs/FutarchyOracleFactory.md b/docs/docs/FutarchyOracleFactory/index.md similarity index 100% rename from docs/docs/FutarchyOracleFactory.md rename to docs/docs/FutarchyOracleFactory/index.md diff --git a/docs/docs/HumanFriendlyToken.md b/docs/docs/HumanFriendlyToken/index.md similarity index 100% rename from docs/docs/HumanFriendlyToken.md rename to docs/docs/HumanFriendlyToken/index.md diff --git a/docs/docs/LMSRMarketMaker.md b/docs/docs/LMSRMarketMaker/index.md similarity index 100% rename from docs/docs/LMSRMarketMaker.md rename to docs/docs/LMSRMarketMaker/index.md diff --git a/docs/docs/MajorityOracle.md b/docs/docs/MajorityOracle/index.md similarity index 100% rename from docs/docs/MajorityOracle.md rename to docs/docs/MajorityOracle/index.md diff --git a/docs/docs/MajorityOracleFactory.md b/docs/docs/MajorityOracleFactory/index.md similarity index 100% rename from docs/docs/MajorityOracleFactory.md rename to docs/docs/MajorityOracleFactory/index.md diff --git a/docs/docs/Market.md b/docs/docs/Market/index.md similarity index 100% rename from docs/docs/Market.md rename to docs/docs/Market/index.md diff --git a/docs/docs/MarketMaker.md b/docs/docs/MarketMaker/index.md similarity index 100% rename from docs/docs/MarketMaker.md rename to docs/docs/MarketMaker/index.md diff --git a/docs/docs/Math.md b/docs/docs/Math/index.md similarity index 100% rename from docs/docs/Math.md rename to docs/docs/Math/index.md diff --git a/docs/docs/Oracle.md b/docs/docs/Oracle/index.md similarity index 100% rename from docs/docs/Oracle.md rename to docs/docs/Oracle/index.md diff --git a/docs/docs/OutcomeToken.md b/docs/docs/OutcomeToken/index.md similarity index 100% rename from docs/docs/OutcomeToken.md rename to docs/docs/OutcomeToken/index.md diff --git a/docs/docs/ScalarEvent.md b/docs/docs/ScalarEvent/index.md similarity index 100% rename from docs/docs/ScalarEvent.md rename to docs/docs/ScalarEvent/index.md diff --git a/docs/docs/SignedMessageOracle.md b/docs/docs/SignedMessageOracle/index.md similarity index 100% rename from docs/docs/SignedMessageOracle.md rename to docs/docs/SignedMessageOracle/index.md diff --git a/docs/docs/SignedMessageOracleFactory.md b/docs/docs/SignedMessageOracleFactory/index.md similarity index 100% rename from docs/docs/SignedMessageOracleFactory.md rename to docs/docs/SignedMessageOracleFactory/index.md diff --git a/docs/docs/StandardMarket.md b/docs/docs/StandardMarket/index.md similarity index 100% rename from docs/docs/StandardMarket.md rename to docs/docs/StandardMarket/index.md diff --git a/docs/docs/StandardMarketFactory.md b/docs/docs/StandardMarketFactory/index.md similarity index 100% rename from docs/docs/StandardMarketFactory.md rename to docs/docs/StandardMarketFactory/index.md diff --git a/docs/docs/StandardMarketWithPriceLogger.md b/docs/docs/StandardMarketWithPriceLogger/index.md similarity index 100% rename from docs/docs/StandardMarketWithPriceLogger.md rename to docs/docs/StandardMarketWithPriceLogger/index.md diff --git a/docs/docs/StandardMarketWithPriceLoggerFactory.md b/docs/docs/StandardMarketWithPriceLoggerFactory/index.md similarity index 100% rename from docs/docs/StandardMarketWithPriceLoggerFactory.md rename to docs/docs/StandardMarketWithPriceLoggerFactory/index.md diff --git a/docs/docs/StandardToken.md b/docs/docs/StandardToken/index.md similarity index 100% rename from docs/docs/StandardToken.md rename to docs/docs/StandardToken/index.md diff --git a/docs/docs/Token.md b/docs/docs/Token/index.md similarity index 100% rename from docs/docs/Token.md rename to docs/docs/Token/index.md diff --git a/docs/docs/UltimateOracle.md b/docs/docs/UltimateOracle/index.md similarity index 100% rename from docs/docs/UltimateOracle.md rename to docs/docs/UltimateOracle/index.md diff --git a/docs/docs/UltimateOracleFactory.md b/docs/docs/UltimateOracleFactory/index.md similarity index 100% rename from docs/docs/UltimateOracleFactory.md rename to docs/docs/UltimateOracleFactory/index.md diff --git a/scripts/makedocs.sh b/scripts/makedocs.sh index b7aefac..59c6c4f 100755 --- a/scripts/makedocs.sh +++ b/scripts/makedocs.sh @@ -1,5 +1,4 @@ #!/usr/bin/env bash rm -r docs -mkdir -p docs/docs -find contracts -name '*.sol' ! -name 'Migrations.sol' -type f -exec bash -c './node_modules/.bin/solmd {} --dest docs/docs/`basename {} .sol`.md' \; +find contracts -name '*.sol' ! -name 'Migrations.sol' -type f -exec bash -c 'mkdir -p docs/docs/`basename {} .sol`; ./node_modules/.bin/solmd {} --dest docs/docs/`basename {} .sol`/index.md' \;